#include <LiquidCrystal.h>
int button=2
// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(7, 8, 9, 10, 11, 12);
void setup() {
// set up the LCD's number of columns and rows:
lcd.begin(16, 2);
// Print a message to the LCD.
lcd.print("I'm Magic 8 Bot!");
// Setup Pt. 2 of LCD.
lcd.setCursor(0, 1);
// Print Bottom part of LCD
lcd.print("Ask a Question.");
}
void loop() {
if(digitalRead(button) == HIGH){
// here, I'd like to have a number of different possible outcomes that can be read out on the lcd, but I can't figure out how to program a randomizer.
}
}
Here is everything. Also, thank you for these salty comments, they give me a wonderful view of the community. Like I said in the first forum, I'm looking for a way to randomize options. In the code, I made a comment about it in the loop section.