Skip to content
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

Fix and refactor analog input class #407

Merged
merged 15 commits into from
Feb 7, 2023
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=Adafruit WipperSnapper
version=1.0.0-beta.59
version=1.0.0-beta.60
author=Adafruit
maintainer=Adafruit <[email protected]>
sentence=Arduino client for Adafruit.io WipperSnapper
2 changes: 1 addition & 1 deletion src/Wippersnapper.h
Original file line number Diff line number Diff line change
@@ -90,7 +90,7 @@
#endif

#define WS_VERSION \
"1.0.0-beta.59" ///< WipperSnapper app. version (semver-formatted)
"1.0.0-beta.60" ///< WipperSnapper app. version (semver-formatted)

// Reserved Adafruit IO MQTT topics
#define TOPIC_IO_THROTTLE "/throttle" ///< Adafruit IO Throttle MQTT Topic
2 changes: 1 addition & 1 deletion src/components/analogIO/Wippersnapper_AnalogIO.cpp
Original file line number Diff line number Diff line change
@@ -258,7 +258,7 @@ bool Wippersnapper_AnalogIO::encodePinEvent(
// Fill payload
outgoingSignalMsg.which_payload =
wippersnapper_signal_v1_CreateSignalRequest_pin_event_tag;
sprintf(outgoingSignalMsg.payload.pin_event.pin_name, "%d", pinName);
sprintf(outgoingSignalMsg.payload.pin_event.pin_name, "A%d", pinName);

// Fill pinValue based on the analog read mode
if (readMode ==