Skip to content

[API v2]: Add support for I2C Output Components #749

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 26 commits into from
May 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
66fc39d
Add I2C_Output PB, add new outputbase driver class, add i2c output to…
brentru May 6, 2025
b8ad718
detect i2c output device
brentru May 6, 2025
54cc000
Add drv for QuadAlphaNum LED backpack
brentru May 6, 2025
8f19c08
Add handler for Write message
brentru May 6, 2025
d54d4ad
Handle initial configuration and begin for outputs
brentru May 7, 2025
9340fff
Added options file, new protos/
brentru May 7, 2025
888a3c0
Fixed options files
brentru May 7, 2025
263fbfa
Implement WriteX funcs for each value type and link within drvOutputBase
brentru May 8, 2025
c9a20b3
add 0a74dc96f50785d7f29d2f44b409033fd880d600
brentru May 8, 2025
eb2cfa1
Writing working for everything but floats
brentru May 8, 2025
878d186
Fix float issues
brentru May 9, 2025
f06ac06
Implement begin and configure for a char lcd
brentru May 9, 2025
a9b1e06
Implement WriteMessage for CharLCD
brentru May 9, 2025
a388b6d
remove hardcode for row/col
brentru May 12, 2025
e519261
printing!
brentru May 12, 2025
2cc9f32
charlcd prints, handlers for degrees symbol
brentru May 12, 2025
93dd43d
Match charlcd commit
brentru May 13, 2025
538ce3b
Add libraries
brentru May 13, 2025
1a12145
clang
brentru May 13, 2025
f8aa819
doxy
brentru May 13, 2025
4df009e
Fix charLCD formatting, decimal on quadalphanum
brentru May 15, 2025
dd6599a
match pb commit 13325a9
brentru May 21, 2025
59c8a73
Update firmware to match previous PB commit's updated PBs
brentru May 21, 2025
4598bbe
Add SSD1306 compatability
brentru May 21, 2025
c1ace0b
Optimizations within pb.h
brentru May 21, 2025
84a4017
Modifications for @tyeth review
brentru May 21, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ paragraph=Arduino application for Adafruit.io WipperSnapper
category=Communication
url=https://github.com/adafruit/Adafruit_Wippersnapper_Arduino
architectures=*
depends=SdFat - Adafruit Fork, Adafruit SPIFlash, Adafruit NeoPixel, ArduinoJson, Adafruit DotStar, Adafruit HDC302x, Adafruit INA219, Adafruit LTR329 and LTR303, Adafruit LTR390 Library, Adafruit MCP3421, Adafruit NAU7802 Library, Adafruit SleepyDog Library, Adafruit TMP117, Adafruit TinyUSB Library, Adafruit AHTX0, Adafruit BME280 Library, Adafruit BMP280 Library, Adafruit BMP3XX Library, Adafruit DPS310, Adafruit DS248x, Adafruit SCD30, Adafruit SGP30 Sensor, Adafruit SGP40 Sensor, Sensirion I2C SCD4x, Sensirion I2C SEN5X, Sensirion I2C SEN66, arduino-sht, Adafruit Si7021 Library, Adafruit MQTT Library, Adafruit MS8607, Adafruit MCP9808 Library, Adafruit MCP9600 Library, Adafruit MPL115A2, Adafruit MPRLS Library, Adafruit TSL2591 Library, Adafruit_VL53L0X, Adafruit VL53L1X, STM32duino VL53L4CD, STM32duino VL53L4CX, Adafruit_VL6180X, Adafruit PM25 AQI Sensor, Adafruit VCNL4020 Library, Adafruit VCNL4040, Adafruit VCNL4200 Library, Adafruit VEML7700 Library, Adafruit LC709203F, Adafruit LPS2X, Adafruit LPS28, Adafruit LPS35HW, Adafruit seesaw Library, Adafruit BME680 Library, Adafruit MAX1704X, Adafruit ADT7410 Library, Adafruit HTS221, Adafruit HTU21DF Library, Adafruit HTU31D Library, Adafruit PCT2075, hp_BH1750, ENS160 - Adafruit Fork, Adafruit BusIO, Adafruit Unified Sensor, Sensirion Core, Adafruit GFX Library, RTClib, StreamUtils, Adafruit SHT4x Library
depends=SdFat - Adafruit Fork, Adafruit SPIFlash, Adafruit NeoPixel, ArduinoJson, Adafruit DotStar, Adafruit HDC302x, Adafruit INA219, Adafruit LTR329 and LTR303, Adafruit LTR390 Library, Adafruit MCP3421, Adafruit NAU7802 Library, Adafruit SleepyDog Library, Adafruit TMP117, Adafruit TinyUSB Library, Adafruit AHTX0, Adafruit BME280 Library, Adafruit BMP280 Library, Adafruit BMP3XX Library, Adafruit DPS310, Adafruit DS248x, Adafruit SCD30, Adafruit SGP30 Sensor, Adafruit SGP40 Sensor, Sensirion I2C SCD4x, Sensirion I2C SEN5X, Sensirion I2C SEN66, arduino-sht, Adafruit Si7021 Library, Adafruit MQTT Library, Adafruit MS8607, Adafruit MCP9808 Library, Adafruit MCP9600 Library, Adafruit MPL115A2, Adafruit MPRLS Library, Adafruit TSL2591 Library, Adafruit_VL53L0X, Adafruit VL53L1X, STM32duino VL53L4CD, STM32duino VL53L4CX, Adafruit_VL6180X, Adafruit PM25 AQI Sensor, Adafruit VCNL4020 Library, Adafruit VCNL4040, Adafruit VCNL4200 Library, Adafruit VEML7700 Library, Adafruit LC709203F, Adafruit LPS2X, Adafruit LPS28, Adafruit LPS35HW, Adafruit seesaw Library, Adafruit BME680 Library, Adafruit MAX1704X, Adafruit ADT7410 Library, Adafruit HTS221, Adafruit HTU21DF Library, Adafruit HTU31D Library, Adafruit PCT2075, hp_BH1750, ENS160 - Adafruit Fork, Adafruit BusIO, Adafruit Unified Sensor, Sensirion Core, Adafruit GFX Library, RTClib, StreamUtils, Adafruit SHT4x Library, Adafruit LED Backpack Library, Adafruit LiquidCrystal
3 changes: 3 additions & 0 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ lib_deps =
adafruit/Adafruit STMPE610
adafruit/Adafruit TouchScreen
adafruit/Adafruit MQTT Library
adafruit/Adafruit LED Backpack Library
adafruit/Adafruit LiquidCrystal
adafruit/Adafruit SSD1306
https://github.com/adafruit/Adafruit_SHT4X.git
bblanchon/ArduinoJson
https://github.com/adafruit/SdFat.git
Expand Down
6 changes: 6 additions & 0 deletions src/Wippersnapper_V2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,12 @@ bool cbDecodeBrokerToDevice(pb_istream_t *stream, const pb_field_t *field,
return false;
}
break;
case wippersnapper_signal_BrokerToDevice_i2c_device_output_write_tag:
WS_DEBUG_PRINTLN("-> I2C Device Output Write Message Type");
if (!WsV2._i2c_controller->Handle_I2cDeviceOutputWrite(stream)) {
return false;
}
break;
case wippersnapper_signal_BrokerToDevice_pixels_add_tag:
WS_DEBUG_PRINTLN("-> Pixels Add Message Type");
if (!WsV2._pixels_controller->Handle_Pixels_Add(stream)) {
Expand Down
Loading
Loading