Commit Graph

185 Commits

Author SHA1 Message Date
stevstrong db000d1411 Update spitftbitmap.ino
- use Adafruit_GFX_AS lib instead of Adafruit_GFX
2017-09-22 11:30:29 +02:00
victorpv a530b6a3d4 Update Wire.cpp
Adds a check to verify if the port had been already enabled, and only in that case disables/re-enables the port. This also solves the issue of setClock being called after begin(), but doesn't not enable the port if begin() had not been called yet.
2017-09-11 22:49:03 -05:00
victorpv 799f2b3b8a Correct issue with port speed not changing.
The current implementation will not change speed if Wire.setClock is called after begin() since the flags are only applied when the port is enabled from being disabled.
Corrected that by adding 2 lines to disable the port, and then enable it again with the new settings.
Tested and confirmed the new speed is applied.
2017-09-11 22:01:55 -05:00
Roger Clark 71d5ab9112 Wire lib change buffer size definition to BUFFER_LENGTH for better AVR compatibility 2017-08-25 18:33:04 +10:00
Roger Clark 33411b6e94 Default Wire to 100khz 2017-08-06 21:04:02 +10:00
Roger Clark 8f7a0b6d5a Added pushColors() to ILI9341 library to better support the OV7670 camera 2017-08-04 20:34:48 +10:00
victorpv db9a70c74f Correcting FreeRTOS900 example. 2017-08-03 11:48:26 -05:00
victorpv 1ea988a57d Correcting FreeRTOS900 examples
The examples were still including the 821 version of FreeRTOS, so changing them to include the right one.
2017-08-03 11:47:15 -05:00
Roger Clark bc41851ce4 Changed default Wire (I2C) to use hardware I2C rather than bit banged software. The existing software Wire implementation has been retained as SoftWare. Examples have also been updated to include Wire, HardWire and Softwire. 2017-08-01 16:47:39 +10:00
stevstrong 0db43ae36f SPI clean up + add 16 bit access functions in 8 bit mode 2017-07-28 17:51:54 +02:00
Roger Clark 6b85615221 Change Wire endTransmission to have bool instead of unit8 argument - to match with the Arduino API 2017-07-20 17:43:13 +10:00
Roger Clark b5eadb8409 Merge pull request #312 from victorpv/SPI-Callbacks
Added Spi callbacks from @victorpv
2017-07-16 08:54:18 +10:00
Roger Clark 0f3c6e5854 Merge pull request #278 from syfre/master
Enhancements and fixes to use ADC in continuous mode triggered by an internal timer
2017-07-16 08:45:38 +10:00
Roger Clark 0393be3400 Added setClock() to Wire and Hardware - only 100000Hz and 400000Hz are supported 2017-07-15 18:31:02 +10:00
victorpv 910072c7db Changes tabs for spaces. 2017-07-10 12:08:59 -05:00
victorpv b892004cc2 Add files via upload 2017-07-10 12:00:29 -05:00
Roger Clark 385dfbf29c Merge pull request #270 from SukkoPera/Fix-ifSerial
Added "if serial" and deprecated isConnected()
2017-07-06 08:36:20 +10:00
Roger Clark 1189a3569c Merge pull request #276 from lacklustrlabs/Adafruit_SSD1306_STM32_swap
Add swap() function to ssd1306_128x64_i2c_STM32 as example would not build…
2017-07-04 08:39:56 +10:00
Roger Clark bd8ef73bef Merge pull request #302 from bmarquismarkail/rcmclone
Adding i2C repeated start condition from @bmarquismarkail
2017-07-03 15:31:45 +10:00
Roger Clark 2dbf8b72c3 Merge pull request #261 from victorpv/FreeRTOS900
Added Free rtos900 from @victorpv
2017-07-03 15:29:23 +10:00
U-MarquisSeven\Brandon 54044592fb changing comment 2017-06-26 18:59:33 -05:00
U-MarquisSeven\Brandon 80339e6073 checking out work from master 2017-06-26 18:57:49 -05:00
Roger Clark aef93f74cd Moved encoderLookup LUT from flash to RAM to give 30% speed increase of setPixelColor() - at the expense of 768 bytes of RAM 2017-06-13 10:39:42 +10:00
Roger Clark ca484b4fdd Add WS2812B library again, but this time without the .git folder in it 2017-06-13 10:38:05 +10:00
Roger Clark 40dd7c6fe1 Removed WS2812B lib as it had a .git folder in it which was causing problems 2017-06-13 10:37:16 +10:00
Roger Clark 7487d96f70 Fix typo in Hardware end() 2017-06-13 08:32:56 +10:00
Roger Clark cc355255ac Added WS2812B (aka Neopixel) library using SPI DMA asynchronous transfers and double buffering 2017-06-12 16:42:49 +10:00
Roger Clark 953aa8b88e Added end() to HardWire (I2C) 2017-06-11 15:55:08 +10:00
Roger Clark f47846662d Added Wire.end() for bit banged version (TwoWire.cpp) 2017-06-11 15:42:05 +10:00
Roger Clark 0444a36527 Added an additional SPI API function dmaSendAsync which will start the a DMA send of a buffer and return immediately. The next time dmaSendAsync is called it waits if the previous transfer is not complete. Note the buffer is not copied, so ddouble buffering is needed to use this function 2017-06-11 15:35:14 +10:00
SukkoPera ef60992e20 Merge remote-tracking branch 'upstream/master' into Fix-ifSerial 2017-06-09 22:11:52 +02:00
SukkoPera c4643b265e Remove isConnected() usage and binary zeros from StringEx_Parsinge xample 2017-06-09 22:07:33 +02:00
SukkoPera bf138eb389 Remove isConnected() usage from examples 2017-06-09 22:07:05 +02:00
Roger Clark ed8c7a186f Merge branch 'F1_SPI_development' of https://github.com/stevstrong/Arduino_STM32 into stevstrong-F1_SPI_development 2017-06-06 20:54:53 +10:00
Roger Clark 8477fba5d5 Merge branch 'master' into stevstrong-F1_SPI_development 2017-06-06 20:54:17 +10:00
stevstrong 782b53119d used GFX library changed back to GFX_AS 2017-05-25 10:18:27 +02:00
stevstrong aa79ea1d6e Adafruit_ILI9341_STM - reworked for 16 bit SPI register accesses 2017-05-24 18:40:41 +02:00
stevstrong f1608abe0b SPI update
- cleaned up commented out lines
- run-time optimized write and transfer functions
- run-time optimized non-DMA block read routine
- function call order within DMA routines tied to F4 structure - in line
with AN4031, chapter 4.3
- reworked send functions (currently not used, deprecated, but still)
2017-05-22 21:09:12 +02:00
syfre c8df44228c Add, SMT32ADC example, Single channel at fixed sample rate (timer) using circular buffer (DMA) 2017-05-07 11:41:58 +02:00
syfre d240a7efa7 Fix, compile error in enable_internal_reading() 2017-05-06 23:04:11 +02:00
lacklustrlabs 1d29d13967 The ssd1306_128x64_i2c_STM32 example would not build because of a missing swap() macro. 2017-04-27 18:22:18 +02:00
victorpv ea81f36fa5 FreeRTOS900 2017-03-25 08:31:44 -05:00
Josh Stewart 7c320774b1 Add EEPROM.update() function 2017-02-08 15:17:58 +11:00
stevstrong 38ea7287ca Merge remote-tracking branch 'refs/remotes/rogerclarkmelbourne/master' 2016-12-27 11:42:34 +01:00
stevstrong fb823b6929 remove unused code & bugfixes
- setDataSize shall first disable the SPI before writing new value
- dmaTransfer adapted for TFT library usage
2016-12-26 15:26:51 +01:00
stevstrong 22fad7582d Merge remote-tracking branch 'refs/remotes/rogerclarkmelbourne/master' 2016-12-26 15:13:43 +01:00
Roger Clark 76dcee39a9 Removed old - mainly non functional Due related display examples 2016-12-23 09:48:43 +11:00
stevstrong e7456e1916 further optimizations
- extend read function to 16bit
- add repeated write the same byte/word a specified number of time
- revert increment option to dmaSend
2016-12-10 22:36:21 +01:00
Roger Clark 69413ee56e Update InternalTempSensor.ino
Fixed issue caused by https://github.com/rogerclarkmelbourne/Arduino_STM32/pull/132/files
2016-11-27 10:10:42 +11:00
Roger Clark 1892447080 Fix issue 196, for Servo library 2016-11-12 18:34:58 +11:00