Skip to content

Commit d989d8d

Browse files
nitko12Clang Robot
andauthored
Test actions (#88)
* TEST 1 * TEST 1 * TEST 2 * Test2 * Test3 * Committing clang-format changes * Test4 * Committing clang-format changes * Fixed filenames. * Test * Testing compile. * Testing compile2. * Testing compile3. * Testing compile4. * Testing compile5. * Testing compile6. * Testing compile7. * Testing compile8. * Testing compile9. * Testing compile10. * Testing compile11 * Testing compile12 * Testing compile13 * Testing compile14 * Testing compile15 * Testing compile16 * Testing compile17 * Testing compile18 * Testing compile19 * Testing compile20 * Fixes for -Wall * Fixes for -Wall 2 * Fixes for -Wall 3 * Fixes for -Wall 4 * Fixes for -Wall 5 * Wall hoping to be final. * Adding wakeup button to touchpad example. * Adding wakeup button to touchpad example 2. * Wall fixes, once again. * Fixes. * Fix * Pls be final. * pls work * Update README.md * Update README.md Co-authored-by: Clang Robot <[email protected]>
1 parent 0113d87 commit d989d8d

File tree

1,297 files changed

+11073
-12733
lines changed

Some content is hidden

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

1,297 files changed

+11073
-12733
lines changed
File renamed without changes.

.github/workflows/compile.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Compile Examples
2+
on: [push]
3+
jobs:
4+
build:
5+
runs-on: ubuntu-latest
6+
7+
strategy:
8+
matrix:
9+
include:
10+
- board:
11+
fqbn: Dasduino_Boards:Inkplate:Inkplate6
12+
additional-sketch-paths: |
13+
- examples/Inkplate6
14+
- board:
15+
fqbn: Dasduino_Boards:Inkplate:Inkplate10
16+
additional-sketch-paths: |
17+
- examples/Inkplate10
18+
- board:
19+
fqbn: Dasduino_Boards:Inkplate:Inkplate5
20+
additional-sketch-paths: |
21+
- examples/Inkplate5
22+
- board:
23+
fqbn: Dasduino_Boards:Inkplate:Inkplate6plus
24+
additional-sketch-paths: |
25+
- examples/Inkplate6PLUS
26+
- board:
27+
fqbn: Dasduino_Boards:Inkplate:Inkplatecolor
28+
additional-sketch-paths: |
29+
- examples/InkplateColor
30+
steps:
31+
- name: Checkout
32+
uses: actions/checkout@v2
33+
- name: Install ESP32 platform dependencies
34+
run: pip3 install pyserial
35+
- name: Compile examples
36+
uses: arduino/compile-sketches@v1
37+
with:
38+
github-token: ${{ secrets.GITHUB_TOKEN }}
39+
platforms: |
40+
- source-url: https://github.com/e-radionicacom/Dasduino-Board-Definitions-for-Arduino-IDE/raw/master/package_Dasduino_Boards_index.json
41+
name: Dasduino_Boards:Inkplate
42+
fqbn: ${{ matrix.board.fqbn }}
43+
libraries: |
44+
- source-path: ./
45+
- name: "Adafruit BME680 Library"
46+
- name: ArduinoJson
47+
- name: Time
48+
sketch-paths: |
49+
${{ matrix.additional-sketch-paths }}

.github/workflows/format.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Run clang-format Linter
2+
3+
on: [push]
4+
5+
jobs:
6+
format:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- uses: actions/checkout@v2
11+
- uses: DoozyX/[email protected]
12+
with:
13+
source: "./src"
14+
exclude: "./src/libs"
15+
extensions: "h,cpp,c,ino"
16+
clangFormatVersion: 12
17+
inplace: True
18+
- uses: EndBug/add-and-commit@v4
19+
with:
20+
author_name: Clang Robot
21+
author_email: [email protected]
22+
message: "Committing clang-format changes"

.gitignore

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
2-
.clang-format
3-
clang-format
41
.vscode/
52
build/
63
examples/.DS_Store
7-
.DS_Store
4+
.DS_Store

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Inkplate Arduino library
22

3+
[![Compile Sketches](https://github.com/e-radionicacom/Inkplate-Arduino-library/actions/workflows/compile.yml/badge.svg?branch=dev)](https://github.com/e-radionicacom/Inkplate-Arduino-library/actions/workflows/compile.yml)
4+
35
![](https://www.crowdsupply.com/img/cf95/compare-peripheral_jpg_project-body.jpg)
46

57
Arduino library for all-in-one e-paper display family named Inkplate can be found in this repo. Inkplate is a series of powerful, Wi-Fi enabled ESP32-based e-paper display products. Its main feature is simplicity. Just plug in a USB cable, open Arduino IDE, and change the contents of the screen with few lines of code. Inkplate family currently includes Inkplate 10, Inkplate 6 and Inkplate 6PLUS - learn more about Inkplates on [official website](https://inkplate.io/).
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
/*
2+
Inkplate_Bluetooth_Peripheral_Mode_Example example for e-radionica Inkplate 6
3+
For this example you will need USB cable and an Inkplate 6
4+
Select "Inkplate 10(ESP32)" from Tools -> Board menu.
5+
Don't have "Inkplate 10(ESP32)" option? Follow our tutorial and add it:
6+
https://e-radionica.com/en/blog/add-inkplate-6-to-arduino-ide/
7+
8+
This example shows how to use Inkplate as a peripheral device over Bluetooth.
9+
Note: for this to work you need to use ESP32 Wroover Board definition, as ours currently has a bug :(
10+
11+
Want to learn more about Inkplate? Visit www.inkplate.io
12+
Looking to get support? Write on our forums: http://forum.e-radionica.com/en/
13+
15 July 2020 by e-radionica.com
14+
*/
15+
#include "Inkplate.h"
16+
17+
#include "BluetoothSerial.h"
18+
19+
#define BUFFER_SIZE 1000
20+
21+
#include "Peripheral.h"
22+
23+
// Declare Inkplate and SerialBluetooth objects
24+
Inkplate display(INKPLATE_1BIT);
25+
BluetoothSerial SerialBT;
26+
27+
// Temporary buffer to send to Peripheral mode code
28+
char commandBuffer[BUFFER_SIZE + 1];
29+
30+
void setup() // Initialize everything
31+
{
32+
Serial.begin(115200);
33+
34+
if (!SerialBT.begin("ESP32"))
35+
{
36+
Serial.println("An error occurred initializing Bluetooth");
37+
}
38+
39+
display.begin();
40+
}
41+
42+
void loop()
43+
{
44+
while (SerialBT.available()) // When Bluetooth available save it and pass to Peripheral.h code
45+
{
46+
for (int i = 0; i < (BUFFER_SIZE - 1); i++)
47+
{
48+
commandBuffer[i] = commandBuffer[i + 1];
49+
}
50+
commandBuffer[BUFFER_SIZE - 1] = SerialBT.read();
51+
Serial.print(commandBuffer[BUFFER_SIZE - 1]);
52+
}
53+
54+
// Function in peripheral.h
55+
run(commandBuffer, BUFFER_SIZE);
56+
57+
delay(50);
58+
}

0 commit comments

Comments
 (0)