![](/media/cache/profiles/Timo_01_DSC_4754_533x533.jpg.50x50_q85.jpg)
The code is developed for the hardware NUCLEO-L432KC and Digilent Pmod OLEDrgb. The purpose is to make students learn the development process and test that the hardware works fine. For converting this to Mbed OS 6 Adafruit_GFX.h needed to add #include "Stream.h" in beginning of the Adafruit_GFX.h Adafruit_SSD1331.cpp wait_ms(200) replaced with ThisThread::sleep_for(200ms); for all the similar wait_ms lines.
Dependencies: Adafruit-GFX-MbedOS6
Diff: main.cpp
- Revision:
- 5:58208433fe78
- Parent:
- 4:b3559f0f6072
- Child:
- 6:a5886100eeeb
--- a/main.cpp Mon Feb 22 18:03:21 2021 +0000 +++ b/main.cpp Tue Feb 23 09:01:05 2021 +0000 @@ -31,10 +31,8 @@ * L432KC GND - GND Ground * ************************************************************************* -* Compiles OK, works with hardware with operating system revision 6691:cf4f12a -* Compiles OK, DOESN'T WORK with hardware with op sys revision 7088:3ab72c7 -* Updated for OS6, Compiles OK, works with hardware with os revision OS 7864:890f056 -* Timo Karppinen 29.08.2020 SPDX-License-Identifier: Apache-2.0 +* Updated for OS67, OS68 +* Timo Karppinen 23.02.2021 SPDX-License-Identifier: Apache-2.0 **************************************************************/ #include "mbed.h" @@ -85,7 +83,7 @@ ThisThread::sleep_for(2000ms); LED = 0; // Setting the time - set_time(1614012790); // Set RTC time to " https://www.epochconverter.com/ " + set_time(1614069522); // Set RTC time to " https://www.epochconverter.com/ " // Initalize the PmodOLEDrgb, the library includes SPI and there is // no need to initialize the SPI in the main.cpp OLED.begin(); // initialization of display object