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
Lines changed: 29 additions & 0 deletions
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+
}
Lines changed: 9 additions & 0 deletions
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
Lines changed: 23 additions & 0 deletions
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+
}
Lines changed: 9 additions & 0 deletions
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
Lines changed: 26 additions & 0 deletions
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+
}
Lines changed: 9 additions & 0 deletions
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
Lines changed: 26 additions & 0 deletions
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+
}
Lines changed: 9 additions & 0 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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) {

0 commit comments

Comments
 (0)