Commit graph

89 commits

Author SHA1 Message Date
riban
f142f80a30 Fixes #417 - adds function gpioRdOutput to read output pins. 2018-10-14 09:21:01 +01:00
Kristian Sloth Lauszus
00aa35518b Release part of the code under "GPLv2 or later", so it is compatible with GPLv3
Fixes #364
2018-04-10 11:34:43 +02:00
kn1cht
a7f67cdfc6 Add ESP32 pin settings 2018-01-14 02:46:36 +09:00
Kristian Sloth Lauszus
5107310499 Applied path for e7fa52925d manually 2017-11-09 19:13:42 +01:00
Kristian Sloth Lauszus
84bab2d748 Do not use SPI.writeBytes on the ESP8266 2017-06-13 12:40:07 +02:00
Kristian Sloth Lauszus
453a4e1f7f Explicit cast the data to an uint8_t pointer
It is then cast back to uint32_t in the SPI library: 40c159fcf5/libraries/SPI/SPI.cpp (L402)
2017-06-13 12:18:40 +02:00
Kristian Sloth Lauszus
a68614a2e8 The data needs to be aligned to 32-bit when sending using SPI.writeBytes and SPI.transferBytes for the ESP8266 2017-06-13 11:55:05 +02:00
Kristian Sloth Lauszus
4cb265e9a8 Merge branch 'master' into ESP8266
* master:
  millis() is 64-bits on the Arduino/Genuino 101
  CLOCK_SPEED is now correctly defined as an int instead of a double
  Define CLOCK_SPEED as type int
  Add genuino101 to travis, remove call to setClockDivider (obsolete)
  Remove duplicate code
  Add Arduino 101 mods from https://github.com/KitPan/USB_Host_Shield_2.0

# Conflicts:
#	.travis.yml
2017-02-06 14:45:33 +01:00
Joe Bowbeer
e2902bd8a1 Add genuino101 to travis, remove call to setClockDivider (obsolete) 2017-02-06 12:43:02 +01:00
Joe Bowbeer
d57d810e93 Remove duplicate code 2017-02-03 22:52:01 -08:00
Joe Bowbeer
4158a501a9 Add Arduino 101 mods from https://github.com/KitPan/USB_Host_Shield_2.0 2017-02-03 22:44:51 -08:00
Kristian Sloth Lauszus
46a036cbd4 Merge branch 'master' into ESP8266
* master:
  The Xbox button on the Xbox One controller was not read properly
  Added support for Teensy 3.5 and 3.6

# Conflicts:
#	.travis.yml
2016-12-07 14:30:20 -06:00
Kristian Sloth Lauszus
6ec044c230 Added support for Teensy 3.5 and 3.6 2016-11-26 23:46:03 -06:00
Kristian Sloth Lauszus
6af321a7ac Use transferBytes when we want to receive data 2016-10-26 00:58:51 -05:00
Kristian Sloth Lauszus
231fb542a8 SPI pins are defined in newer version of Arduino
See: https://github.com/arduino/Arduino/pull/4814
2016-10-25 03:23:40 -05:00
Kristian Sloth Lauszus
58015d611d Use SPI.writeBytes instead of SPI.transfer on the ESP8266 2016-10-25 00:07:52 -05:00
Kristian Sloth Lauszus
6fbe00703a Workaround issue with SPI_HAS_TRANSACTION is just defined and not set to a value in the ESP8266 Arduino core 2016-10-25 00:07:51 -05:00
Kristian Sloth Lauszus
f087a57895 Added support for ESP8266
Fixes #262
2016-10-25 00:07:51 -05:00
Kristian Sloth Lauszus
bd679a8a19 Added support for STM32F446 Nucleo board 2015-10-14 17:33:28 +02:00
Barry Carter
7cfb4fac28 Add Teensy LC support. Note: disables spi4teensy lib. (Barry Carter) 2015-07-21 20:10:49 +01:00
Kristian Sloth Lauszus
758cce56f5 There is no need for RBL_NRF51822 to have it's own SPI implementation 2015-06-02 16:09:34 +02:00
Matt Sieren
71e4596ab1 Fixed Compile Error with RedBearLabs nRF51288
Fixed a macro definition which would cause the compiler to try
to compile against an undefined function in the RBL SDK.
2015-06-01 20:52:47 +02:00
Kristian Sloth Lauszus
0ef5fa5357 Always prioritise USING_SPI4TEENSY3 if set to 1
Fixes: #147
2015-04-20 21:44:31 +02:00
Kristian Sloth Lauszus
4e80db2b3f Use setClockSpeed to increase SPI clock speed
This is only available in newer version of the API. It can be downloaded here: http://www.intel.com/support/edison/sb/CS-035180.htm and can both be used with the Edison and the Galileo
Note that I tried to set the clock rate higher than 12 MHz, but it did not work
2015-03-19 21:20:06 +01:00
Kristian Sloth Lauszus
d881e514ee Check for MIPSEL at the same place as Teensy 3.x and Galileo 2015-03-19 18:25:26 +01:00
Kristian Sloth Lauszus
424e351923 Put avrpins include back at original order
Also some whitespace fixes
2015-03-19 18:24:41 +01:00
Kristian Sloth Lauszus
73ce976198 Merge branch 'SPI' into Galileo
Conflicts:
	Usb.h
	avrpins.h
	usbhost.h
2015-03-19 16:36:51 +01:00
Kristian Sloth Lauszus
585b357ee5 Merge branch 'master' into SPI
Conflicts:
	settings.h
	usbhost.h
2015-03-19 15:34:07 +01:00
Andrew J. Kroll
2412be1bd9 Janitorial tab removal 2015-03-12 18:10:04 -04:00
Kristian Sloth Lauszus
73f791c859 Merge branch 'SPI' into Galileo
Conflicts:
	avrpins.h
	settings.h
	usbhost.h
2015-03-03 19:57:35 +01:00
Kristian Sloth Lauszus
d19d78f940 Always favour SPI library if it has transactions 2015-03-03 19:22:43 +01:00
Kristian Sloth Lauszus
c39e8a180c Merge branch 'master' into SPI
Conflicts:
	examples/Bluetooth/SPPMulti/SPPMulti.ino
	examples/adk/ArduinoBlinkLED/ArduinoBlinkLED.ino
	settings.h
	usbhost.h
2015-03-03 18:56:59 +01:00
Andrew J. Kroll
d25f28109d all sources to LF 2015-02-22 13:18:45 -05:00
Kristian Sloth Lauszus
6047962d60 Merge branch 'xxxajk'
Conflicts:
	XBOXUSB.h
	examples/ftdi/USBFTDILoopback/USBFTDILoopback.ino
	hiduniversal.h
	settings.h
	usbhost.h
2015-02-22 18:25:22 +01:00
Matt Sieren
4cf9f34228 Moved include for nRF51822
Moved the include into the right file.
2014-11-22 09:53:59 +01:00
Matt Sieren
3646c650b6 Added RBL nRF51822 Support
Added support for the nRF51822 Board by RedBearLab.
2014-11-21 22:58:54 +01:00
Andrew J. Kroll
f2f57d71a3 Speedup SPI, fix PIC32 corner case for include 2014-09-25 23:14:04 -04:00
Andrew J. Kroll
740fa097e6 Add support for MIPS uC (PIC32X) and the ancient mpide "IDE" used for it 2014-09-22 22:53:11 -04:00
Kristian Lauszus
4ab24d9973 No need to __ARDUINO_X86__ to have it's own entry 2014-09-07 22:06:19 -07:00
Kristian Lauszus
a3db3d9451 Added support for the Intel Galileo
Still not tested
2014-08-24 16:40:18 -07:00
Kristian Lauszus
963c157bc5 Make sure that we send out empty bytes when receiving multiple bytes
Also fixed some comments
2014-08-03 18:01:55 +02:00
Kristian Lauszus
45df70641b Use new Arduino SPI library
See: https://github.com/arduino/Arduino/pull/2223
2014-08-02 15:06:46 -07:00
Kristian Lauszus
62f8cbbc25 Do not set SS pin for the Due
Let the Arduino SPI library take care of that
2014-03-07 02:19:34 +01:00
Kristian Lauszus
d8cadc5744 Increase SPI speed on the Due to 21MHz 2014-03-02 16:35:16 +01:00
Kristian Lauszus
39b6c3b124 Added support for the Arduino Due
Untested
2014-02-25 11:47:59 +01:00
Andrew J. Kroll
3ee654bb12 Very small optimization. 2013-12-28 14:43:21 -05:00
Andrew J. Kroll
f1af9b08ec Janitorial, whitespace fixes. No new code. 2013-12-25 05:09:57 -05:00
Kristian Lauszus
f283e90402 Renamed CLK, MOSI, MISO and SS variables, as they conflicted with defines in pins_arduino.h
See: 7fcba37acf
2013-12-15 22:19:50 +01:00
Andrew J. Kroll
6e70087f0b teensy 3.1 support 2013-12-11 14:15:51 -05:00
Andrew J. Kroll
8715cbde67 Add spi4teensy3 library support 2013-11-24 08:56:34 -05:00