/*
This is the third lab of EE107.
The purpose of this lab is to understand how to
take provided characters and integers, and convert them into their
respective ASCII code values with Arduino .
The procedure of the lab was to take the six given characters
and integers respectively, and to utilize typecasting functions in the IDE.
Author: Jasmine Dezurn
StarID: vj0100jc
Date: September 23rd, 2024
*/
void setup() {
Serial.begin(9600);
int asciicodeone_JD = 64;
char charcodeone_JD = asciicodeone_JD;
int asciicodetwo_JD = 93;
char charcodetwo_JD = asciicodetwo_JD;
int asciicodethree_JD = 57;
char charcodethree_JD = asciicodethree_JD;
Serial.println(charcodeone_JD);
Serial.println(charcodetwo_JD);
Serial.println(charcodethree_JD);
char charactertonum_JD = '9';
int asciiconversion_JD = charactertonum_JD;
char charactertonumtwo_JD = ']';
int asciiconversiontwo_JD = charactertonumtwo_JD;
char charactertonumthree_JD = 'B';
int asciiconversionthree_JD = charactertonumthree_JD;
Serial.println(asciiconversion_JD);
Serial.println(asciiconversiontwo_JD);
Serial.println(asciiconversionthree_JD);
}
void loop() {
// put your main code here, to run repeatedly:
}