This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
macro_rules! string_value_type { | |
($TypeName:ident $(~$derive_name:ident)*) => { | |
#[derive($($derive_name),*)] | |
pub struct $TypeName(String); | |
impl From<&str> for $TypeName { | |
fn from(value: &str) -> Self { | |
Self(value.to_owned()) | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Wire.h> | |
#define SDA 4 | |
#define SCL 5 | |
#define I2CADDR 0x20 | |
byte rxByte[2]; | |
bool whichByte = false; | |
byte selectedChannel = 0; | |
byte selectedBank = 0; |
OlderNewer