Skip to content

Commit

Permalink
Merge pull request #250 from SolderedElectronics/dev
Browse files Browse the repository at this point in the history
Dev to master
  • Loading branch information
BornaBiro committed May 6, 2024
2 parents ae05087 + 4fcc082 commit 8e341dc
Show file tree
Hide file tree
Showing 391 changed files with 117,557 additions and 112 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ jobs:
strategy:
matrix:
include:
- board:
fqbn: Inkplate_Boards:esp32:Inkplate5
additional-sketch-paths: |
- examples/Inkplate5
- board:
fqbn: Inkplate_Boards:esp32:Inkplate5V2
additional-sketch-paths: |
- examples/Inkplate5V2
- board:
fqbn: Inkplate_Boards:esp32:Inkplate6
additional-sketch-paths: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ char *ssid = ""; // Your WiFi SSID
char *pass = ""; // Your WiFi password

// Add the URL of the image you want to show on Inkplate
String url = "https://raw.githubusercontent.com/SolderedElectronics/Inkplate-Arduino-library/dev/examples/Inkplate10/Advanced/WEB_WiFi/Inkplate10_Show_JPG_With_HTTPClient/image.jpg";
String url = "https://raw.githubusercontent.com/SolderedElectronics/Inkplate-Arduino-library/master/examples/Inkplate10/Advanced/WEB_WiFi/Inkplate10_Show_JPG_With_HTTPClient/image.jpg";

/***********************************************/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ char *ssid = ""; // Your WiFi SSID
char *pass = ""; // Your WiFi password

// Add the URL of the image you want to show on Inkplate
String url = "https://raw.githubusercontent.com/SolderedElectronics/Inkplate-Arduino-library/dev/examples/Inkplate2/Advanced/WEB_WiFi/Inkplate2_Show_JPG_With_HTTPClient/image.jpg";
String url = "https://raw.githubusercontent.com/SolderedElectronics/Inkplate-Arduino-library/master/examples/Inkplate2/Advanced/WEB_WiFi/Inkplate2_Show_JPG_With_HTTPClient/image.jpg";

/***********************************************/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ void setup()
display.clearDisplay();

if (!display.drawImage("https://raw.githubusercontent.com/SolderedElectronics/Inkplate-Arduino-library/"
"Inkplate2-DrawImage3Color-And-Examples/examples/Inkplate2/Advanced/WEB_WiFi/"
"master/examples/Inkplate2/Advanced/WEB_WiFi/"
"Inkplate2_Show_Pictures_From_Web/cat_dithered.jpg",
0, 0, false, false))
{
Expand All @@ -87,7 +87,7 @@ void setup()
http.getStream().setTimeout(1);

http.begin("https://raw.githubusercontent.com/SolderedElectronics/Inkplate-Arduino-library/"
"Inkplate2-DrawImage3Color-And-Examples/examples/Inkplate2/Advanced/WEB_WiFi/"
"master/examples/Inkplate2/Advanced/WEB_WiFi/"
"Inkplate2_Show_Pictures_From_Web/car.bmp");

// Check response code.
Expand Down Expand Up @@ -129,7 +129,7 @@ void setup()
// true will flip all colors on the image, making black white and white black. fourth parameter will dither the
// image.
if (!display.drawImage("https://raw.githubusercontent.com/SolderedElectronics/Inkplate-Arduino-library/"
"Inkplate2-DrawImage3Color-And-Examples/examples/Inkplate2/Advanced/WEB_WiFi/"
"master/examples/Inkplate2/Advanced/WEB_WiFi/"
"Inkplate2_Show_Pictures_From_Web/mountain.png",
0, 0, true, false))
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,30 +38,30 @@ void setup()
display.display(); // Put clear image on display

// Init the buzzer, this must be called if using it
display.buzzer.begin();
display.initBuzzer();

// The most basic example
// This will produce three short beeps
// The beeps are each 80ms long
display.buzzer.beep(80);
display.beep(80);
delay(80);
display.buzzer.beep(80);
display.beep(80);
delay(80);
display.buzzer.beep(80);
display.beep(80);
delay(80);

delay(5000); // Wait 5 seconds before the next example

// The buzzer may also be controlled by manually turning it on or off
// beepOn will turn on the buzzer indefinitely until beepOff is called
// This will produce two 200 ms beeps
display.buzzer.beepOn();
display.beepOn();
delay(200);
display.buzzer.beepOff();
display.beepOff();
delay(200);
display.buzzer.beepOn();
display.beepOn();
delay(200);
display.buzzer.beepOff();
display.beepOff();
delay(200);

delay(5000); // Wait 5 seconds before the next example
Expand All @@ -70,13 +70,13 @@ void setup()
// Note that pitch is approximated as the digital potentiometer does not affect the pitch in a linear way
// Frequencies from 572 to 2933 Hz are supported
// Here are two low pitched (~750Hz) followed by two high pitched (~2400Hz) beeps
display.buzzer.beep(300, 750);
display.beep(300, 750);
delay(50);
display.buzzer.beep(300, 750);
display.beep(300, 750);
delay(50);
display.buzzer.beep(300, 2400);
display.beep(300, 2400);
delay(50);
display.buzzer.beep(300, 2400);
display.beep(300, 2400);
delay(50);

delay(5000); // Wait 5 seconds before the next example
Expand All @@ -89,16 +89,16 @@ void loop()
if (repeatCounter < 2)
{
// Play the note set to be played for 100 ms
display.buzzer.beep(100, chord[currentNoteIndex]);
display.beep(100, chord[currentNoteIndex]);
delay(600); // Wait 600 ms so there's room between the notes
}
// The second four times play the notes twice
else
{
// Play the note set to be played for 100 ms
display.buzzer.beep(100, chord[currentNoteIndex]);
display.beep(100, chord[currentNoteIndex]);
delay(250); // Wait 300 ms and play it again for 50 ms
display.buzzer.beep(50, chord[currentNoteIndex]);
display.beep(50, chord[currentNoteIndex]);
delay(300); // Wait for 300 ms, this totals to 700 so it's in rhythm
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ char *ssid = ""; // Your WiFi SSID
char *pass = ""; // Your WiFi password

// Add the URL of the image you want to show on Inkplate
String url = "https://raw.githubusercontent.com/SolderedElectronics/Inkplate-Arduino-library/dev/examples/"
String url = "https://raw.githubusercontent.com/SolderedElectronics/Inkplate-Arduino-library/master/examples/"
"Inkplate4TEMPERA/Advanced/WEB_WiFi/Inkplate4TEMPERA_Show_JPG_With_HTTPClient/image.jpg";

/***********************************************/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ void setup()
if (result == 5)
{
Serial.println("I2C Bus Error!");
failHandler();
failHandler(true);
}
}

Expand Down
Loading

0 comments on commit 8e341dc

Please sign in to comment.