Skip to content

Commit a06da05

Browse files
committed
[examples] Update SSD1306 examples
1 parent def628e commit a06da05

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

examples/generic/ros/environment/project.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
</options>
88
<modules>
99
<module>modm:driver:bme280</module>
10-
<module>modm:driver:ssd1306</module>
10+
<module>modm:driver:ssd1306.i2c</module>
1111
<module>modm:ros</module>
1212
<module>modm:communication:ros</module>
1313
<module>modm:processing:timer</module>

examples/generic/ros/environment/thread_display.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#include <modm/processing/timer.hpp>
1515
#include <modm/processing/protothread.hpp>
1616

17-
#include <modm/driver/display/ssd1306.hpp>
17+
#include <modm/driver/display/ssd1306_i2c.hpp>
1818

1919
#include "hardware.hpp"
2020

@@ -55,7 +55,7 @@ class DisplayThread: public modm::pt::Protothread
5555
}
5656

5757
protected:
58-
modm::Ssd1306<MyI2cMaster, 64> display;
58+
modm::Ssd1306I2c<MyI2cMaster, 64> display;
5959
modm::ShortTimeout boot_timeout;
6060
bool _dirty;
6161
int32_t _seq;

examples/stm32f4_discovery/display/ssd1306/main.cpp renamed to examples/stm32f4_discovery/display/ssd1306_i2c/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*/
1111

1212
#include <modm/board.hpp>
13-
#include <modm/driver/display/ssd1306.hpp>
13+
#include <modm/driver/display/ssd1306_i2c.hpp>
1414

1515
/**
1616
* Example to demonstrate a MODM graphics display SSD1306.
@@ -24,7 +24,7 @@
2424
typedef GpioB9 Sda;
2525
typedef GpioB8 Scl;
2626
typedef I2cMaster1 MyI2cMaster;
27-
modm::Ssd1306<MyI2cMaster> display;
27+
modm::Ssd1306I2c<MyI2cMaster> display;
2828

2929
// ----------------------------------------------------------------------------
3030
int

examples/stm32f4_discovery/display/ssd1306/project.xml renamed to examples/stm32f4_discovery/display/ssd1306_i2c/project.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<library>
22
<extends>modm:disco-f407vg</extends>
33
<options>
4-
<option name="modm:build:build.path">../../../../build/stm32f4_discovery/display/ssd1306</option>
4+
<option name="modm:build:build.path">../../../../build/stm32f4_discovery/display/ssd1306_i2c</option>
55
</options>
66
<modules>
7-
<module>modm:driver:ssd1306</module>
7+
<module>modm:driver:ssd1306.i2c</module>
88
<module>modm:platform:gpio</module>
99
<module>modm:platform:i2c:1</module>
1010
<module>modm:build:scons</module>

0 commit comments

Comments
 (0)