|Software apps and online services:|
I tried animating the eye of a bitmap image using the Micro OLED module and Visuino.
128 × 160 pixels display. The driver IC is ST7735R. Data communication is performed by SPI.
Display the eyeball image and move it with the Wii Nunchaku controller.
Visuino also has Wii controllers and ST7735 display components. Launch Visuino and place the following components.
- Arduino UNO
- Wii Nunchuck Controller
- Map Range×2
- Analog To Integer×2
- TFT Color Display ST7735
Wii Nunchuck Controller Component
Connect X of stick to In of MapRange2 In, Y to Map Range1 In. I2C Out is connected to the I2C In of the Arduino UNO component.
Map Range1 Component
Max: 0.9, Min: 0.1 for Input Range, Max: 28, Min: 0 for Output Range. Component Out connected to In of AnalogToInteger1.
Map Range2 Component
Max: 0.9, Min: 0.1 for Input Range, Max: 60, Min: 0 for Output Range. Component Out connected to In of AnalogToInteger2.
Analog To Integer Components
This Component converts analog values to integers. AnalogToInteger1 Out connects to display component Clock and X. AnalogToInteger2 Out connects to display component Y.
TFT Color Display ST7735 Component
Select clWhite for Background Color. Double click the component to open the Elenments window and add Draw Bitmap. Select a 100 * 100 pixel bullet bitmap image in Bitmap.
- X is 14. Click the pin icon and select Integer SinkPin.
- Y is 30. Click the pin icon and select Integer SinkPin.
By setting to Integer SinkPin, display coordinates X and Y of the image can be input from the outside. The component's SPI Out is connected to the SPI In of the Arduino UNO component.
- ChipSelect (CS ) is connected to Digital  for UNO.
- Reset (RESET ) is connected to Digital  for UNO.
- RegisterSelect (A 0 ) is connected to Digital  for UNO.
Press the Arduino icon at the top of the window to launch the Arduino IDE and write the program to UNO.