Download the Phidget Java HelloWorld Example to the SBC. If you haven't already, connect to the SBC using SSH or a keyboard and monitor.Ģ. emacs - advanced, needs to be installedġ.nano - recommended for beginners, already installed.First, you will need to pick a terminal editor in order to write and edit your files. Regardless of how you choose to access the terminal, the process is the same. Access the terminal by connecting directly to the SBC using a keyboard and monitor.When developing directly on the SBC, you will do so in one of the following ways: If you aren't interested in developing directly on the Phidget SBC, jump ahead to running a program automatically. Success! The HelloWorld example is running on your SBC. stdout: view the program output like you would in a terminal or command prompt.You'll note that as it runs, there are two links below the Stop button: If you are using a Windows machine, type the following into the command prompt:Ħ. Copy the HelloWorld.java file from the example package to the same directory.ģ. Place phidget22.jar on your development machine in a directory that you will use to compile your Java files.Ģ. Download the following on your development machine before we get started:ġ. To demonstrate, we will use the Hello World example for Java. When you are ready, you will then upload your programs to the SBC to run them. When developing on an external computer, you will write, compile, and test your programs on that machine. If you are planning on developing directly on the SBC, you can jump ahead to developing directly on the SBC. If you are interested in developing on an external computer, keep reading. You're now ready to begin programming! Continue through this guide for code examples and directions on where to go next. If you are using an external computer, there are videos available to help you get started, here is a video for Java: Use a more powerful external computer to develop your code, and then simply copy the files to the SBC.Use the SBC like any other Linux computer, simply connect a monitor and a keyboard and begin your development.If you are ready to go, the first step will be deciding how you will use the SBC: If you haven't already, check out the user guide in order to set up the following: SBC4 SD Card Image | md5 (After reflashing the SD card, be sure to expand the filesystem).3.2 Developing Directly on the Phidget SBCĪlready know what you're doing? Here you go:įor PhidgetSBC3 (1073) kernel version 3.6.3:.3.1 Developing with an External Computer.2.2 Installing Packages for Development.2.1 Developing with an External Computer.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |