Can anyone help use the Frappuccino library to communicate through Arduino?
in
Contributed Library Questions
•
5 months ago
Hi all, I am working on a project that involves using an Arduino with the "standard firmata" to receive signals from a joystick. But I also have a standard 16x2 LCD attached to the Arduino, and I want to be able to display text on the LCD while the user plays the game.
I discovered the "Frappuccino" library which seems to offer a way to do this, but I can't figure out how the library works. The Frappuccino example for using a LCD looks like this:
- import muvium.processing.*;
- import muvium.processing.arduino.LiquidCrystal;
- import muvium.sim.virtualbreadboard.ICEShield;
- public class HelloWorldApp extends V18OBoard{
- LiquidCrystal lcd;
- /**
- Static Pins are configured in the configureDevice pre-process
- */
- public void configurePins(){
- LiquidCrystal.configurePins( new int[]{ 9, 8, 5, 4, 3, 2 } );
- ICEShield.configurePins(0); //Use pin 0 as wait pin - using ICEShield for testing with virtual hardware
- //! comment out when using with real hardware
- }
- public void setup() {
- lcd = new LiquidCrystal();
- // set up the LCD's number of columns and rows:
- lcd.begin(16, 2);
- // Print a message to the LCD.
- lcd.print("hello, world!");
- }
- public void loop() {
- // set the cursor to column 0, line 1
- // (note: line 1 is the second row, since counting begins with 0):
- lcd.setCursor(0, 1);
- // print the number of seconds since reset:
- lcd.print(millis()/1000);
- }
- }
- ////////////////////////////////////////////////////////////////
- // MUVIUM PROCESSING TOOLKIT
- ////////////////////////////////////////////////////////////////
- void draw(){
- MuviumToolkit.program( this );
- }
Thanks in advance.
1