Skip to content

Commit 519f339

Browse files
committed
Align with Demo version v1.4.135
1 parent 3db78ad commit 519f339

File tree

305 files changed

+38926
-1690
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

305 files changed

+38926
-1690
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/*
2+
ePaper Count Down.c
3+
*/
4+
5+
// ------ Libraries and Definitions ------
6+
#include "simpletools.h"
7+
#include "il3820.h"
8+
9+
// ------ Global Variables and Objects ------
10+
screen *ePaper;
11+
int item;
12+
13+
14+
15+
// ------ Main Program ------
16+
int main() {
17+
ePaper = il3820_init(11, 10, 9, 8, 7, 6, 128, 296);
18+
setTextColor(ePaper, 0);
19+
setBgColor(ePaper, 1);
20+
clearDisplay(ePaper);
21+
for (item = 100; item >= 1; item--)
22+
{
23+
setCursor(ePaper, 0, 0, 0);
24+
drawNumber(ePaper, item, DEC);
25+
updateDisplay(ePaper);
26+
pause(1000);
27+
clearDisplay(ePaper);
28+
}
29+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
ePaper Count Down.c
2+
>compiler=C
3+
>memtype=cmm main ram compact
4+
>optimize=-Os
5+
>-m32bit-doubles
6+
>-fno-exceptions
7+
>defs::-std=c99
8+
>-lm
9+
>BOARD::ACTIVITYBOARD
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/*
2+
ePaper Draw Lines.c
3+
*/
4+
5+
// ------ Libraries and Definitions ------
6+
#include "simpletools.h"
7+
#include "il3820.h"
8+
9+
// ------ Global Variables and Objects ------
10+
screen *ePaper;
11+
int item;
12+
13+
// ------ Main Program ------
14+
int main()
15+
{
16+
ePaper = il3820_init(11, 10, 9, 8, 7, 6, 128, 296);
17+
for (item = 5; item <= 50; item += (5))
18+
{
19+
drawLine(ePaper, item + 5, item + 5, item + 40, item + 10, 0);
20+
updateDisplay(ePaper);
21+
22+
}
23+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
ePaper Draw Lines.c
2+
>compiler=C
3+
>memtype=cmm main ram compact
4+
>optimize=-Os
5+
>-m32bit-doubles
6+
>-fno-exceptions
7+
>defs::-std=c99
8+
>-lm
9+
>BOARD::ACTIVITYBOARD
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/*
2+
ePaper random pixels.c
3+
*/
4+
5+
// ------ Libraries and Definitions ------
6+
#include "simpletools.h"
7+
#include "il3820.h"
8+
9+
// ------ Global Variables and Objects ------
10+
screen *ePaper;
11+
int item;
12+
int PixelX;
13+
int PixelY;
14+
15+
// ------ Main Program ------
16+
int main()
17+
{
18+
ePaper = il3820_init(11, 10, 9, 8, 7, 6, 128, 296);
19+
for (item = 1; item <= 100; item++)
20+
{
21+
PixelX = (random(0, (getDisplayWidth(ePaper))));
22+
PixelY = (random(0, (getDisplayHeight(ePaper))));
23+
drawPixel(ePaper, PixelX, PixelY, 0);
24+
updateDisplay(ePaper);
25+
}
26+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
ePaper Random Pixels.c
2+
>compiler=C
3+
>memtype=cmm main ram compact
4+
>optimize=-Os
5+
>-m32bit-doubles
6+
>-fno-exceptions
7+
>defs::-std=c99
8+
>-lm
9+
>BOARD::ACTIVITYBOARD
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/*
2+
ePaper Test Coordinates.c
3+
*/
4+
5+
// ------ Libraries and Definitions ------
6+
#include "simpletools.h"
7+
#include "il3820.h"
8+
9+
// ------ Global Variables and Objects ------
10+
screen *ePaper;
11+
12+
// ------ Main Program ------
13+
int main()
14+
{
15+
ePaper = il3820_init(11, 10, 9, 8, 7, 6, 128, 296);
16+
setTextColor(ePaper, 0);
17+
setBgColor(ePaper, 0);
18+
setCursor(ePaper, 3, 3, 0);
19+
drawText(ePaper, "Hello World!");
20+
setCursor(ePaper, 8, 8, 0);
21+
drawText(ePaper, "Hello world!");
22+
setCursor(ePaper, 11, 11, 0);
23+
drawText(ePaper, "Hello World!");
24+
updateDisplay(ePaper);
25+
26+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
ePaper Test Coordinates.c
2+
>compiler=C
3+
>memtype=cmm main ram compact
4+
>optimize=-Os
5+
>-m32bit-doubles
6+
>-fno-exceptions
7+
>defs::-std=c99
8+
>-lm
9+
>BOARD::ACTIVITYBOARD

Learn/Examples/Devices/Sensor/Air Quality BME680/bme680_adjust_sensor_settings.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ bme680 *mySensor; // Create a new sensor instance
2424
int main() {
2525

2626
// Open the sensor using an SPI interface
27-
// SDO, CLK, SDI, CS
27+
// CLK, SDI, SDO, CS
2828
mySensor = bme680_openSPI(20, 21, 22, 23);
2929

3030

Learn/Examples/Devices/Sensor/Air Quality BME680/bme680_display_values_using_SPI.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ bme680 *mySensor; // Create a new sensor instance
2525
int main() {
2626

2727
// Open the sensor using an SPI interface
28-
// SDO, CLK, SDI, CS
28+
// CLK, SDI, SDO, CS
2929
mySensor = bme680_openSPI(20, 21, 22, 23);
3030

3131
while(1) {

Learn/Examples/Devices/Sensor/Air Quality BME680/bme680_toggle_heater.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ bme680 *mySensor; // Create a new sensor instance
2626
int main() {
2727

2828
// Open the sensor using an SPI interface
29-
// SDO, CLK, SDI, CS
29+
// CLK, SDI, SDO, CS
3030
mySensor = bme680_openSPI(20, 21, 22, 23);
3131

3232
// Turn the heating element off

Learn/Simple Libraries Index.html

+31-3
Original file line numberDiff line numberDiff line change
@@ -136,14 +136,36 @@ <h3 style="font-family:verdana;">Display</h3>
136136

137137
<p>
138138
<blockquote>
139-
<a href="Simple%20Libraries/Display/liblcdParallel/Documentation%20lcdParallel%20Library.html" target="_blank">lcdParallel.h</a> - Functions for controlling most Character LCDs using its parallel pins.
139+
<a href="Simple%20Libraries/Display/libil3820/Documentation%20il3820%20Library.html" target="_blank">il3820.h</a> - Functions for the 296 x 128 2.9 inch ePaper Display.
140140
</blockquote>
141141
</p>
142142

143143

144144
<p>
145145
<blockquote>
146-
<a href="Simple%20Libraries/Display/liboledc/Documentation%20oledc%20Library.html" target="_blank">oledc.h</a> - Functions for controlling the 96 x 64 Color oLED Display Module.
146+
<a href="Simple%20Libraries/Display/liblcdParallel/Documentation%20lcdParallel%20Library.html" target="_blank">lcdParallel.h</a> - Functions for most Character LCDs using its parallel pins.
147+
</blockquote>
148+
</p>
149+
150+
151+
<p>
152+
<blockquote>
153+
<a href="Simple%20Libraries/Display/liboledc/Documentation%20oledc%20Library.html" target="_blank">oledc.h</a> - Functions for the 96 x 64 Color oLED Display Module.
154+
</blockquote>
155+
</p>
156+
157+
158+
<p>
159+
<blockquote>
160+
<a href="Simple%20Libraries/Display/libssd1331/Documentation%20ssd1331%20Library.html" target="_blank">ssd1331.h</a> - Functions for the Color OLED Display Module, 96 x 64.
161+
</blockquote>
162+
</p>
163+
164+
165+
<p>
166+
<blockquote>
167+
<a href="Simple%20Libraries/Display/libsimplegfx/Documentation%20simplegfx%20Library.html" target="_blank">simplegfx.h</a> - This library contains shape, text, and bitmap drawing
168+
functions that can be called by applications that use the 296 x 128 2.9 inch ePaper (il3820.h) or RGB OLED Display, 96 x 64 (ssd1331.h).
147169
</blockquote>
148170
</p>
149171

@@ -275,7 +297,6 @@ <h3 style="font-family:verdana;">Remote</h3>
275297

276298
<h3 style="font-family:verdana;">Robotics</h3>
277299

278-
279300
<p>
280301
<blockquote>
281302
<a href="Simple%20Libraries/Robotics/ActivityBot360/libabdrive360/Documentation%20abdrive360%20Library.html" target="_blank">abdrive360.h</a> - Tools for ActivityBot 360 navigation with Feedback 360 servos.
@@ -304,6 +325,13 @@ <h3 style="font-family:verdana;">Robotics</h3>
304325

305326
<h3 style="font-family:verdana;">Sensor</h3>
306327

328+
<p>
329+
<blockquote>
330+
<a href="Simple%20Libraries/Sensor/libbme680/Documentation%20bme680%20Library.html" target="_blank">bme680.h</a> - Sensor driver for the Bosch BME680 air quality sensor.
331+
</blockquote>
332+
</p>
333+
334+
307335
<p>
308336
<blockquote>
309337
<a href="Simple%20Libraries/Sensor/libcolorpal/Documentation%20colorpal%20Library.html" target="_blank">colorpal.h</a> - For red/green/blue measurements with the ColorPAL.

Learn/Simple Libraries/Audio/libwavplayer/libwavplayer.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ int main()
1616
{
1717
int DO = 22, CLK = 23, DI = 24, CS = 25;
1818
sd_mount(DO, CLK, DI, CS);
19-
19+
2020
const char levels[] = {"levels.wav"};
2121
wav_play(levels);
2222

@@ -29,7 +29,7 @@ int main()
2929
pause(6000);
3030
wav_stop();
3131
pause(1000);
32-
32+
3333
const char crazy[] = {"crazy.wav"};
3434
wav_play(crazy);
3535
while(1);

0 commit comments

Comments
 (0)