Confirmed users
699
edits
| Line 69: | Line 69: | ||
== Run Firefox OS within Raspbian == | == Run Firefox OS within Raspbian == | ||
Now that your host machine, RPi, and development circuits are set up, you can run the demo. Ensure that your RPi's HDMI out is plugged into a TV or monitor; Firefox OS draws directly to the GPU's framebuffer, it doesn't use X11. So currently the Firefox OS display can't be remoted. | |||
The following commands start FFOS | |||
ssh pi@$rpiaddress | |||
sudo ./ffos/start.sh | |||
You should see a lot of logging spew written to your console. Finally, Firefox OS will load the demo application. If all goes well, your screen should blink green/black every second, and the LED in your demo circuit should blink on/off approximately in unison with the screen blinking. | |||
Finally, return to your open copy of <code>$dev/ffos/app/html/app.js</code>. Find the string <code>'green'</code> and change it to <code>'pink'</code>. Save the file. | |||
Now we're going to reload the web app. Foxberry Pi has a "reload button" --- the literal, physical button you built for your development circuit! :) Press that button and hold it down for about a second. Your web app should reload and the background start blinking pink/black, instead of green/black. | |||
So yes, Foxberry Pi enables save-reload web development. | |||
Congratulations! You're ready to develop apps for Foxberry Pi. | |||
== Limitations == | == Limitations == | ||