Java Day Tokyo 2013 Night Session

  • View
    739

  • Download
    3

Embed Size (px)

DESCRIPTION

Java Day Tokyo 2013 Night Session

Transcript

  • 1. Sun SPOT JavaFX @hiroskhttps://www.facebook.com/hiroshi.koide.3koide@ai.kyutech.ac.jp
  • 2. Demonstration 1/3JavaFX 2+Sun SPOT
  • 3. Demonstration 2/3JavaFX 2Brick Breaker+Sun SPOT
  • 4. Demonstration 3/3JavaFX 8(JDK1.8.0-ea-b88 with JavaFX 8)3D feature+Sun SPOT
  • 5. Sun SPOT
  • 6. Project Sun SPOTSmallProgrammableObjectTechnologySunJavaSun(OracleLEDUSB32RGB24LED86I/O54180MHz 32 bit ARM920T core512K RAM/4M 802.15.4 USB3.6V750mAh36A"Java"
  • 7. Java TechnologyNetbeans MIDP (Mobile Information Device Profile)J2ME/CLDCJavaMIDPMIDletjavax.microedition.midlet.MIDletJARvoid startApp()void pauseApp()void destroyApp(boolean c)802.15.4Squawk Java MELSIprotected void startApp() throws MIDletStateChangeException {ISwitch sw1 =EDemoBoard.getInstance().getSwitches()[EDemoBoard.SW1];ITriColorLED [] leds = EDemoBoard.getInstance().getLEDs();leds[0].setRGB(100,0,0); // set color to moderate redwhile (sw1.isOpen()) { // done when switch is pressedleds[0].setOn(); // Blink LEDUtils.sleep(250); // wait 1/4 secondsleds[0].setOff();Utils.sleep(1000); // wait 1 second}notifyDestroyed(); // cause the MIDlet to exit}
  • 8. host Java FX SwingJavaFX10111101111010110
  • 9. SunSPOTJavaFX Sun SPOT SDK JDK1.5 ant USB Base station Squawk Java VM JavaFX
  • 10. JavaFX 8 or 2SocketSunSPOT hostServer SocketBaseStationSunSPOTJavaFX 8 or 2SunSPOT hostBaseStation SunSPOT