78. @AlbertusLM@Braintree_Dev#Voxxed
2. show Twitter image
< spark core />
int tftShowTwitter(String command)
{
//Adjustment to present correctly the text on the
screen
String textToPrint = " Sending tweet to n"
" "+ command;
//Printing the Twitter screen
bmpDraw("twitter.bmp", 0, 0);
showTextInScreen(textToPrint,10,140);
delay(4000);
}
Sending
tweet
to
albertusLM
79. @AlbertusLM@Braintree_Dev#Voxxed
3. move motor and show transaction
< spark core />
int moveMotorCandy(String command)
{
//Adjustment to present correctly the text on the
screen
String textToPrint = " Enjoy! n"
" Tr.ID: "+ command;
//Printing the MotorMovement screen
bmpDraw("motor.bmp", 0, 0);
showTextInScreen (textToPrint,10,160);
delay(1000);
digitalWrite(MOTOR, 1); // Turn ON the motor
delay(milisecsMovingMotor);
digitalWrite(MOTOR, 0); // Turn OFF the motor
delay(3000);
setScreenToStandBy();
}
Enjoy!
Tr.ID:
dfr43