Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #if defined(ARDUINO) && ARDUINO > 18
- #include <SPI.h>
- #endif
- #include <string.h>
- // #wtf this whole thing works
- /*
- String stringOne = "Hello String"; // char var[13] right? = 12 char + null?
- String argh[3][3]={
- {stringOne,stringOne,stringOne},
- {stringOne,stringOne,stringOne},
- {stringOne,stringOne,stringOne}
- };
- */
- String argh[3][3][20]={
- {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t'},
- {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t'},
- {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t'},
- };
- void setup() {
- Serial.begin(9600);
- Serial.println( argh[0][1] );
- delay(1000);
- argh[0][1]="TeeHee";
- Serial.println( argh[0][1] );
- delay(1000);
- }
- void loop()
- {
- Serial.println( argh[0][1] );
- delay(1000);
- }
Advertisement
Add Comment
Please, Sign In to add comment