Compare commits
6 commits
add-i2c-ou
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
251ee1fa47 | ||
|
|
1786350b8c | ||
|
|
64972ad506 | ||
|
|
f2115ce251 | ||
|
|
7635278b61 | ||
|
|
e1d92010c2 |
2 changed files with 13 additions and 13 deletions
16
.github/workflows/protoc-wrapper-generation.yml
vendored
16
.github/workflows/protoc-wrapper-generation.yml
vendored
|
|
@ -15,7 +15,7 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
# Setup
|
# Setup
|
||||||
- uses: actions/setup-python@v2
|
- uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: '3.x'
|
python-version: '3.x'
|
||||||
- name: Install Protoc
|
- name: Install Protoc
|
||||||
|
|
@ -28,7 +28,7 @@ jobs:
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install protobuf setuptools
|
pip install protobuf setuptools
|
||||||
- name: Self Checkout
|
- name: Self Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
path: protobuf-checkout
|
path: protobuf-checkout
|
||||||
submodules: true
|
submodules: true
|
||||||
|
|
@ -53,7 +53,7 @@ jobs:
|
||||||
# protoc --plugin=nanopb/generator/protoc-gen-nanopb -Inanopb/generator/proto --proto_path=./proto ./proto/wippersnapper/*/*/*.proto --nanopb_out=./arduino_out --nanopb_opt=-I./proto --nanopb_opt=-t --plugin=protoc-gen-doc=./protoc-gen-doc --doc_out=./doc --doc_opt=html,index.html
|
# protoc --plugin=nanopb/generator/protoc-gen-nanopb -Inanopb/generator/proto --proto_path=./proto ./proto/wippersnapper/*/*/*.proto --nanopb_out=./arduino_out --nanopb_opt=-I./proto --nanopb_opt=-t --plugin=protoc-gen-doc=./protoc-gen-doc --doc_out=./doc --doc_opt=html,index.html
|
||||||
|
|
||||||
- name: Checkout Arduino Repo
|
- name: Checkout Arduino Repo
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
repository: adafruit/Adafruit_Wippersnapper_Arduino
|
repository: adafruit/Adafruit_Wippersnapper_Arduino
|
||||||
token: ${{ secrets.IO_BOT_PAT }}
|
token: ${{ secrets.IO_BOT_PAT }}
|
||||||
|
|
@ -84,7 +84,7 @@ jobs:
|
||||||
protoc --proto_path=./protobuf-checkout/proto ./protobuf-checkout/proto/wippersnapper/*/*/*.proto --js_out=import_style=commonjs,binary:js_out
|
protoc --proto_path=./protobuf-checkout/proto ./protobuf-checkout/proto/wippersnapper/*/*/*.proto --js_out=import_style=commonjs,binary:js_out
|
||||||
protoc ./protobuf-checkout/nanopb/generator/proto/nanopb.proto --js_out=import_style=commonjs,binary:js_out
|
protoc ./protobuf-checkout/nanopb/generator/proto/nanopb.proto --js_out=import_style=commonjs,binary:js_out
|
||||||
- name: Checkout io-node Repo
|
- name: Checkout io-node Repo
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
repository: AdafruitInternalDev/io-node
|
repository: AdafruitInternalDev/io-node
|
||||||
token: ${{ secrets.IO_BOT_PAT }}
|
token: ${{ secrets.IO_BOT_PAT }}
|
||||||
|
|
@ -112,7 +112,7 @@ jobs:
|
||||||
|
|
||||||
# Docs
|
# Docs
|
||||||
- name: Checkout doc branch
|
- name: Checkout doc branch
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
ref: gh-pages
|
ref: gh-pages
|
||||||
path: protobuf-docs-checkout
|
path: protobuf-docs-checkout
|
||||||
|
|
@ -124,11 +124,11 @@ jobs:
|
||||||
git commit -m "Add generated HTML documentation for $GITHUB_SHA" || exit 0 # quit cleanly if nothing to commit
|
git commit -m "Add generated HTML documentation for $GITHUB_SHA" || exit 0 # quit cleanly if nothing to commit
|
||||||
git push
|
git push
|
||||||
- name: Setup Pages
|
- name: Setup Pages
|
||||||
uses: actions/configure-pages@v3
|
uses: actions/configure-pages@v5
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-pages-artifact@v2
|
uses: actions/upload-pages-artifact@v3
|
||||||
with:
|
with:
|
||||||
path: 'protobuf-docs-checkout/doc'
|
path: 'protobuf-docs-checkout/doc'
|
||||||
- name: Deploy to GitHub Pages
|
- name: Deploy to GitHub Pages
|
||||||
id: deployment
|
id: deployment
|
||||||
uses: actions/deploy-pages@v2
|
uses: actions/deploy-pages@v4
|
||||||
|
|
|
||||||
|
|
@ -91,7 +91,7 @@ message I2CDeviceInitRequest {
|
||||||
int32 i2c_port_number = 1; /** The desired I2C port to initialize an I2C device on. */
|
int32 i2c_port_number = 1; /** The desired I2C port to initialize an I2C device on. */
|
||||||
I2CBusInitRequest i2c_bus_init_req = 2; /** An I2C bus initialization request. */
|
I2CBusInitRequest i2c_bus_init_req = 2; /** An I2C bus initialization request. */
|
||||||
uint32 i2c_device_address = 3; /** The 7-bit I2C address of the device on the bus. */
|
uint32 i2c_device_address = 3; /** The 7-bit I2C address of the device on the bus. */
|
||||||
string i2c_device_name = 4[(nanopb).max_size = 15]; /** The I2C device's name, MUST MATCH the name on the JSON definition file on https://github.com/adafruit/Wippersnapper_Components. */
|
string i2c_device_name = 4[(nanopb).max_size = 256]; /** The I2C device's name, MUST MATCH the name on the JSON definition file on https://github.com/adafruit/Wippersnapper_Components. */
|
||||||
repeated I2CDeviceSensorProperties i2c_device_properties = 5[(nanopb).max_count = 15]; /** Properties of each sensor on the I2C device. */
|
repeated I2CDeviceSensorProperties i2c_device_properties = 5[(nanopb).max_count = 15]; /** Properties of each sensor on the I2C device. */
|
||||||
bool is_output_device = 6; /** True if the I2C device is an I2C output device, False otherwise (default). */
|
bool is_output_device = 6; /** True if the I2C device is an I2C output device, False otherwise (default). */
|
||||||
I2COutputAdd i2c_output_add = 7; /** The configuration for an I2C output device. */
|
I2COutputAdd i2c_output_add = 7; /** The configuration for an I2C output device. */
|
||||||
|
|
@ -114,7 +114,7 @@ message I2CDeviceInitResponse {
|
||||||
message I2CDeviceUpdateRequest {
|
message I2CDeviceUpdateRequest {
|
||||||
int32 i2c_port_number = 1; /** The desired I2C port. */
|
int32 i2c_port_number = 1; /** The desired I2C port. */
|
||||||
uint32 i2c_device_address = 2; /** The 7-bit I2C address of the device on the bus. */
|
uint32 i2c_device_address = 2; /** The 7-bit I2C address of the device on the bus. */
|
||||||
string i2c_device_name = 3[(nanopb).max_size = 15]; /** The I2C device's name, MUST MATCH the name on the JSON file. */
|
string i2c_device_name = 3[(nanopb).max_size = 256]; /** The I2C device's name, MUST MATCH the name on the JSON file. */
|
||||||
repeated I2CDeviceSensorProperties i2c_device_properties = 4[(nanopb).max_count = 15]; /** Properties for the I2C device's sensors. */
|
repeated I2CDeviceSensorProperties i2c_device_properties = 4[(nanopb).max_count = 15]; /** Properties for the I2C device's sensors. */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -215,7 +215,7 @@ message I2CDeviceEvent {
|
||||||
*/
|
*/
|
||||||
message I2CDeviceOutputWrite {
|
message I2CDeviceOutputWrite {
|
||||||
uint32 i2c_device_address = 1; /** The 7-bit I2C address of the device on the bus. */
|
uint32 i2c_device_address = 1; /** The 7-bit I2C address of the device on the bus. */
|
||||||
string i2c_device_name = 2[(nanopb).max_size = 15]; /** The I2C device's name, MUST MATCH the name on the JSON definition file on https://github.com/adafruit/Wippersnapper_Components. */
|
string i2c_device_name = 2[(nanopb).max_size = 256]; /** The I2C device's name, MUST MATCH the name on the JSON definition file on https://github.com/adafruit/Wippersnapper_Components. */
|
||||||
oneof output_msg {
|
oneof output_msg {
|
||||||
LEDBackpackWrite write_led_backpack = 3; /** Optional - If the I2C device is a LED backpack, fill this field. **/
|
LEDBackpackWrite write_led_backpack = 3; /** Optional - If the I2C device is a LED backpack, fill this field. **/
|
||||||
CharLCDWrite write_char_lcd = 4; /** Optional - If the I2C device is a character LCD, fill this field. **/
|
CharLCDWrite write_char_lcd = 4; /** Optional - If the I2C device is a character LCD, fill this field. **/
|
||||||
|
|
@ -284,7 +284,7 @@ message I2COutputAdd {
|
||||||
* LEDBackpackWrite represents a request from the broker to write a message to a LED backpack.
|
* LEDBackpackWrite represents a request from the broker to write a message to a LED backpack.
|
||||||
*/
|
*/
|
||||||
message LEDBackpackWrite {
|
message LEDBackpackWrite {
|
||||||
string message = 1 [(nanopb).max_size = 5]; /** Message to write to the LED backpack. **/
|
string message = 1 [(nanopb).max_size = 128]; /** Message to write to the LED backpack. **/
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -300,5 +300,5 @@ message CharLCDWrite {
|
||||||
* write to a SSD1306 OLED display.
|
* write to a SSD1306 OLED display.
|
||||||
*/
|
*/
|
||||||
message SSD1306Write {
|
message SSD1306Write {
|
||||||
string message = 1 [(nanopb).max_size = 128]; /** Message to write to a SSD1306 OLED display. **/
|
string message = 1 [(nanopb).max_size = 256]; /** Message to write to a SSD1306 OLED display. **/
|
||||||
}
|
}
|
||||||
Loading…
Reference in a new issue