Microduino Rotary encoder chooses the mobile number and sends message
|Language:||English • 中文|
Bill of Materials
Download OLED library: https://codeload.github.com/stanleyhuangyc/MultiLCD/zip/master
Set up system, as follows:
Open the test program, compile it and then download.
After download, use the encoder to choose the mobile phone number.
1.Read the I/O port voltage to judge if the encoder was pressed, which used to choose the number;
2.Use the interrupt 0 and 1 to judge the direction of encoder, which used to choose the value;
3. oled_draw() is the interface select function;
4. SMS_sms() function uses the AT command to send message.
Use the encoder to choose number and send message, avoid the use of matrix keyboard.
Pay attention issue
Copy the files under MultiLCD\MultiLCD directory in OLED library, then compile the test program.