Commit Graph

320 Commits

Author SHA1 Message Date
lacklustrlabs daf62cafca Removed a redundant buffer constraint 2018-01-21 17:13:17 +01:00
lacklustrlabs 4e820c3649 Full method signatures in header file.
<pet peeve>
I don't understand why anyone wants to remove useful API information from the header file.
CPP files describes implementation details, header files describes the API.
</pet peeve>
2018-01-21 17:13:17 +01:00
lacklustrlabs b9dbeb69d9 Fixed minor example issues 2018-01-21 17:13:17 +01:00
lacklustrlabs 01c23b6a58 Changed type of transmitting to bool (from uint8_t) 2018-01-21 17:13:17 +01:00
lacklustrlabs 4ad4de080f Saved some 50K flash memory by modifying the singleton implementation 2018-01-21 17:13:17 +01:00
lacklustrlabs b46b7461f4 Merged with Wire implementation from stm32duino/Arduino_Core_STM32 2018-01-21 17:13:17 +01:00
lacklustrlabs 78f8a90a2d Fixed a master/slave mode mixup.
Turns out that (sr2&I2C_SR2_MSL)!=I2C_SR2_MSL indicates slave mode after master has requested, and received, data.

"MSL - Cleared by hardware after detecting a Stop condition on the bus or a loss of arbitration
(ARLO=1), or by hardware when PE=0." -RM0008
2018-01-21 17:13:17 +01:00
lacklustrlabs 987102c8d2 Temporarily removed not yet functioning examples 2018-01-21 17:13:17 +01:00
lacklustrlabs c65ec99a8d Updated library.properties 2018-01-21 17:13:17 +01:00
lacklustrlabs 6fe4a55922 Added SoftWire.h 2018-01-21 17:13:17 +01:00
lacklustrlabs 56e95f2773 Steals any reference to Wire.h and redirects it to Wire_slave.h.
This way we don't need to alter third party libraries.
Note that Wire_slave.h must be included **before** the real Wire.h for this to work.
2018-01-21 17:13:17 +01:00
lacklustrlabs c4fdf5aa63 keywords.txt Copied from ArduinoCore-sam (Due) 2018-01-21 17:13:17 +01:00
lacklustrlabs 3425506d19 spellcheccck 2018-01-21 17:13:17 +01:00
lacklustrlabs 730711b80a Made sure Wire_slave.h is included first 2018-01-21 17:13:17 +01:00
lacklustrlabs 4157ef37a1 Removed some accidental adds 2018-01-21 17:13:17 +01:00
lacklustrlabs 0f78c266ed Added Wire_slave.h (no actual i2c slave implementation yet) 2018-01-21 17:13:17 +01:00
Roger Clark 98f1efdda3
Merge pull request #407 from tfry-git/work/constexpr2
Fix compilation problem in STM32ADC.h when using in -std=gnu++11
2018-01-21 14:37:40 +11:00
stevstrong 63f784ff6f
Update HW_STM32.h
remove static directive
2018-01-02 16:19:31 +01:00
Thomas Friedrichsmeier 63f4162c6c Fix compilation with -std=gnu++11
See https://github.com/rogerclarkmelbourne/Arduino_STM32/issues/402
2017-12-12 10:58:22 +01:00
Roger Clark dbbb6b0c25 Merge branch 'patch-7' of https://github.com/stevstrong/Arduino_STM32 into stevstrong-patch-7 2017-12-10 20:52:20 +11:00
stevstrong 000b6ffcd9
Update BluePill-RTClock-test.ino
- small alignment fix.
2017-12-10 02:17:58 +01:00
stevstrong f21895e48d
Update BluePill-RTClock-test.ino
- corrected typo in comments
- reworked serial date input
2017-12-10 02:07:29 +01:00
stevstrong 75f21e3194
Update BluePill-RTClock-test.ino
corrected text alignment (again)
2017-12-09 21:05:47 +01:00
stevstrong f8b7a7ab14
Update BluePill-RTClock-test.ino
make compiler happy
2017-12-09 21:04:07 +01:00
stevstrong e70309ae78
Update BluePill-RTClock-test.ino
- tabs replaced by spaces for a better visual text alignment
2017-12-09 20:56:48 +01:00
stevstrong f245065179
Update BluePill-RTClock-test.ino
- use build time for RTC
- reworked serial monitor output to use sprintf
- some fixes + cosmetics
2017-12-09 20:51:09 +01:00
aster94 e2a62de034
Update i2c_scanner_wire.ino 2017-12-08 10:39:53 +01:00
aster94 b82911742f
Delete i2c_scanner_hardwire.ino 2017-12-08 10:37:26 +01:00
aster94 2d8af307dc
Add files via upload 2017-12-08 10:36:53 +01:00
aster94 558108d63e
Delete WireBase.cpp 2017-12-08 10:36:15 +01:00
aster94 848602e0d6
Delete WireBase.h 2017-12-08 10:36:00 +01:00
aster94 4ffdce29fe
Add files via upload 2017-12-08 10:32:59 +01:00
aster94 acc6cbc371
Add files via upload 2017-12-07 20:11:17 +01:00
aster94 2604eb6be2
Add files via upload 2017-12-07 20:10:35 +01:00
aster94 98ed731df9
Add files via upload 2017-12-07 20:09:30 +01:00
aster94 dbfb68cf91
Add files via upload 2017-12-06 21:52:00 +01:00
Roger Clark 595b128cac Modification to allow SSD1306 example to compile, following changes to Wire to use HWire by default. Note this code is only known to compile , it may not work with the SSD1306 display 2017-12-03 14:39:35 +11:00
Roger Clark e7f46ebed2
Merge pull request #392 from victorpv/patch-2
Correct a bug in FreeRTOS
2017-12-03 10:27:27 +11:00
victorpv bee82cb7c6
Correct a bug in FreeRTOS
As listed in https://www.freertos.org/a00104.html#mailing_list:
"The definition of the StaticTask_t structure is incorrect if INCLUDE_xTaskAbortDelay is set to 1, or the MPU is used. The corrected structure definition can be obtained from here."
https://sourceforge.net/p/freertos/code/HEAD/tree/trunk/FreeRTOS/Source/include/FreeRTOS.h#l978
2017-11-26 09:29:15 -06:00
stevstrong 023fdfb0e9
Update TimerInterrupts.ino
- replace deprecated function
2017-11-26 10:37:22 +01:00
Roger Clark a7503e1d30
Merge pull request #371 from LightningStalker/master
Update BlinkNcount.ino to use LED_BUILTIN rather than a pin number (which is specific to one board).
Note. LED_BUILTIN needs to be defined for some variants where its missing
2017-11-14 09:18:41 +11:00
Roger Clark 9b4122ecaf Fixed exmple for HardTimerAsEncoder being in wrong location 2017-11-13 11:56:13 +11:00
LightningStalker fd00f02072 Update BlinkNcount.ino to use LED_BUILTIN 2017-11-10 04:10:31 -05:00
aka. N[]NE in gaming communities 15d12bee18
Update BlinkNcount.c
Changed pin to PC13
2017-11-06 19:00:41 -05:00
aka. N[]NE in gaming communities 15ce8137b9
Update BlinkNcount.ino
Uses `#define` for LED pin instead of 5 literals
2017-11-06 08:55:32 -05:00
Roger Clark a03c84a635
Merge pull request #362 from csnol/master
Add TimeZone(UnixTime, HourOffset, MinuteOffset)
2017-10-31 19:53:33 +11:00
csnol 588f9db697 update 2017-10-19 18:31:23 +08:00
csnol 4870e27855 Update 2017-10-19 17:26:42 +08:00
csnol c741afa74a Update TimeZone function
Add  TimeZone(UnixTime, HourOffset, MinuteOffset)
2017-10-19 17:23:48 +08:00
csnol 9f5cdd2d24 updated 2017-10-18 21:45:19 +08:00
csnol a89d0b935b Half-hour TimeZone supported 2017-10-18 21:42:31 +08:00
Roger Clark 05f008acbe Merge pull request #334 from csnol/master
Update F103 RTClock library for RTC sketch.
2017-10-10 13:38:08 +11:00
Roger Clark 3c2fce63ee Update ILI9341 STM lib with version from SteveStrong, and also added ReadPixelsRGB24 to steve's version 2017-10-08 14:26:59 +11:00
Roger Clark 84d9c2bd20 Fixed issue in OLED_I2C lib caused by change to HardWire as default I2C 2017-10-08 14:03:20 +11:00
Roger Clark b4aa24ef82 Merge pull request #339 from victorpv/patch-3
F1 SDIO first version
2017-10-08 11:06:04 +11:00
Roger Clark 6ce1fd2e93 Merge pull request #346 from stevstrong/patch-4
Update graphicstest.ino [Adafruit_ILI9341_STM]
2017-10-08 11:03:08 +11:00
Roger Clark 0ca038df51 Merge pull request #347 from stevstrong/patch-5
Update onoffbutton.ino [Adafruit_ILI9341_STM]
2017-10-08 11:02:44 +11:00
Roger Clark d9d6e9e462 Merge pull request #348 from stevstrong/patch-6
Update onoffbutton_breakout.ino [Adafruit_ILI9341_STM]
2017-10-08 11:02:31 +11:00
Roger Clark dcfa250bfb Merge pull request #349 from stevstrong/patch-7
Update spitftbitmap.ino [Adafruit_ILI9341_STM]
2017-10-08 11:02:15 +11:00
Roger Clark f7759f82c8 Merge pull request #350 from stevstrong/patch-8
Update touchpaint.ino [Adafruit_ILI9341_STM]
2017-10-08 11:02:02 +11:00
Roger Clark 9e539cea4f Merge branch 'SPI_const_qualifier' of https://github.com/greiman/Arduino_STM32 into greiman-SPI_const_qualifier 2017-10-08 10:58:11 +11:00
Roger Clark 347a1e3b46 Merge pull request #352 from sweetlilmre/master
Removed deprecated functionality from Print class for BYTE "base"
2017-10-08 10:56:51 +11:00
stevstrong ac7ccee71f Update touchpaint.ino
changed to correct header file
2017-10-04 11:11:05 +02:00
victorpv 31fa24bdd1 Update to util_adc.c file to pass pointer correctly.
This was wrong and causing warnings during compilation.
2017-10-04 00:29:13 -05:00
Peter Edwards f65e6905e9 Removed non standard functionality from Print class for BYTE "base" as this is available via e.g. Serial.write and conflicts with the FatFS library and potentially anything else defining BYTE
Fixed sketches using this behaviour
2017-09-28 12:08:59 +02:00
Bill Greiman 7fda02a821 SPI add const qualifier
Add const qualifier to SPI member function arguments for write and
transmit buffers.
2017-09-22 10:40:05 -07:00
stevstrong c6c53b79ad Update touchpaint.ino
- use Adafruit_GFX_AS lib instead of Adafruit_GFX
2017-09-22 11:31:00 +02:00
stevstrong db000d1411 Update spitftbitmap.ino
- use Adafruit_GFX_AS lib instead of Adafruit_GFX
2017-09-22 11:30:29 +02:00
stevstrong 5c1708e193 Update onoffbutton_breakout.ino
- use Adafruit_GFX_AS lib instead of Adafruit_GFX
2017-09-22 11:29:41 +02:00
stevstrong 6b2ca7dbe7 Update onoffbutton.ino
use Adafruit_GFX_AS lib instead of Adafruit_GFX
2017-09-22 11:28:08 +02:00
stevstrong 43129d17a5 Update graphicstest.ino
- use Adafruit_GFX_AS lib instead of Adafruit_GFX
2017-09-22 11:26:58 +02:00
csnol c25957ee21 Add removeAlarm function 2017-09-14 20:47:12 +08:00
csnol fa7bcde3cd Update example for Chinese friends. timezone and filename error 2017-09-14 16:05:28 +08:00
csnol 2d6abe679a Add keywords for new functions 2017-09-14 15:05:42 +08:00
csnol ed797d43e5 Tested on BluePill for new function of RTC 2017-09-14 00:03:55 +08:00
csnol 6be069cdb6 change TZ from unit_8 to int, negatives timezone
usage: localtime = TimeZone(UnixTime, -7);   // CA USA = -7
2017-09-13 11:02:24 +08:00
csnol 30f8527eaa added TimeZone(time_t xxx, timezone);
Usage:  
time_t localtime;
localtime = TimeZone(UnixTime, 8);   // Beijing timezone = 8
2017-09-13 10:53:08 +08:00
csnol a87ad87fa7 add attachAlarmInterrupt and detachAlarmInterrupt 2017-09-13 04:10:25 +08:00
csnol 7752fc68f2 add attachAlarmInterrupt() detachAlarmInterrupt() 2017-09-13 04:08:04 +08: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
victorpv 434cb255a5 F1 SDIO 2017-09-11 21:26:50 -05:00
victorpv f769556e9a F1 SDIO initial version 2017-09-11 21:25:09 -05:00
csnol d53cacdb1e Update RTClock.cpp 2017-08-30 23:37:41 +08:00
csnol 6c0be70f2e Update RTClock.cpp 2017-08-30 23:28:01 +08:00
csnol 6e92ddd8bc Add STM32F103-RTC-Serial-Set.jpg 2017-08-29 10:30:27 -05:00
csnol 27f8e127a4 Create a RTC example for new library. 2017-08-29 23:13:02 +08:00
csnol fbe6264003 Rewrite the RTClock library. 2017-08-29 10:07:42 -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