It receives draw requests from Arduino over Bluetooth and renders it.
Basic GUI elements as buttons and sliders are implemented in the app to reduce Arduino code size.
GUI callback or touch events are sent back to Arduino.
Program sources as well as Arduino libraries and examples are available on https://github.com/ArminJo/android-blue-display
Supports the following functions:
* Set display size used for drawing commands. The real display size is user definable by just resizing the view.
* Clear display.
* Draw Pixel and Line.
* Draw and fill Circle, Rectangle and Path.
* Draw Character, Text and Multi-line Text transparent or with background color for easy overwriting existent text.
* Draw Chart from byte or short values. Enables clearing of last drawn chart.
* Play system tones.
* Set Codepage and set Mapping for utf16 character to codepage location. I.e. have Omega available at ASCII 0x81.
* Create and manage Buttons and Sliders.
* And much more ...
Can use baud rate up to 115200 Baud.
Using a baudrate of 23040 may hang up the connection if to much data sent. I.e. InStream.read(mInputBuffer, mInputBufferInIndex, 256) just does not return anymore.
The Gears demo is an open source project intended to help developers learn how to create OpenGL ES programs on Android. The Gears demo was originally written by Brian Paul as part of the Mesa3D project. My implementation includes variations for Java/OpenGL ES 1.x, Java/C/OpenGL ES 1.x and Java/C/OpenGL ES 2.0. I have also added several features not found in the original implementation including touch screen support, VBOs and an on-screen FPS counter.
The FPS (frames-per-second) counter is often used as a benchmark metric for graphics programs. On Android the frame rate is limited by v-sync (typically 60 FPS) which is the fastest rate that a display can refresh the screen. Since Gears is capable of rendering much faster than v-sync on most devices it provides limited benchmarking value.
The Bluesmirf Bluetooth module is available from Sparkfun.
Source code is available at https://github.com/jeffboody/spp-mirror
Simon Says is a memory game. Start the game by pressing one of the four buttons. When a button lights up, press the button, repeating the sequence. The sequence will get longer and longer. The game is won after 13 rounds.
The Simon Says Soldering kit and Bluetooth module is available from Sparkfun. Only the through hole version is supported at this time. See my github site for more details.