Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <Wire.h>
- int number_of_symbols_to_read = 22;
- int i2c_slave_adress = 8;
- void setup() {
- Wire.begin();
- Serial.begin(9600);
- Serial.println("Master booting up");
- }
- void loop() {
- Wire.requestFrom(i2c_slave_adress , number_of_symbols_to_read);
- while(Wire.available()) {
- char c = Wire.read();
- Serial.print(c);
- }
- Serial.print("\n\r");
- }
Advertisement
Add Comment
Please, Sign In to add comment