//char arrays are somewhat complicated to remember so it seems to be easier to use
//just String as it can hold single or multiple characters and is
//formatted always the same way https://wokwi.com/projects/395529034260101121
//It is possible to make the array as a String (String can hold one or more characters)
String aaa[3]{"indexZero", "indexOne", "indexTwo"};
//or without specifying the numbef of values in []
String bbb[]{"indexZero", "indexOne", "indexTwo"};
// (String can hold one or more characters)
//index >> 0, 1, 2
String ccc[]{"a", "b", "c"};
//It is possible to make the array as a char, which holds sets of characters
//and char should be inside single quotes
char ddd[3]{'a','b','c'};
//but it worlks also in double quote like so:
char ddd1[3]{"abc"};
//or without specifying the numbef of values in []
char eee[]{'a','b','c'};
//and with double quotes
char eee1[]{"abc"};
//It is possible to make the array as an int
int fff[3]{1, 2, 3};
//or without specifying the numbef of values in []
int ggg[]{1, 2, 3};
//or without specifying the inedexes in {}, but it is needed to specify the number of values in []
//it is maximum of values that can an array hold. hhh array can hold 1 to 10 values indexed 0 to 9
int hhh[10]{};
int iii[11]{};
int i;
int j;
void setup() {
Serial.begin(9600);
Serial.println("BEGIN");
Serial.println();
}
void loop() {
//write to an array by specifying the index to which to write and the content
//writes to an array hhh on index 1 value 55
hhh[1]={55};
Serial.print("ccc array value is ");
Serial.println(ccc[2]);
/*
//writing to iii array multiples of 3 to 30
j=0;
for (i=0; i<11; i++) {
iii[i]={j};
j = j+3;
}
//reading the iii array
Serial.println("Values of iii array: ");
for (i=0; i<11; i++) {
Serial.println(iii[i]);
}
*/
delay(1000000);
}
/*
Info https://www.arduino.cc/reference/en/language/variables/data-types/array/
Single quotes or double quotes?
Strings are always defined inside double quotes ("Abc")
and characters are always defined inside single quotes('A').
*/
uno:A5.2
uno:A4.2
uno:AREF
uno:GND.1
uno:13
uno:12
uno:11
uno:10
uno:9
uno:8
uno:7
uno:6
uno:5
uno:4
uno:3
uno:2
uno:1
uno:0
uno:IOREF
uno:RESET
uno:3.3V
uno:5V
uno:GND.2
uno:GND.3
uno:VIN
uno:A0
uno:A1
uno:A2
uno:A3
uno:A4
uno:A5