[Installation] [Usage] [Bugreport] [Ressources]

ParticleBasic is an attempt to simplify the programming model of the Particle Computer and enable rapid prototyping of applications. It therefore consists of two major components:

The workflow then is very simple:
Write your application in ParticleBasic -> Compile it to byte code with the ParticleBasic compiler -> Upload the byte code to the Particle.

This approach has many advantages:



The best way to get started is to have a look at this small example ParticleBasic program. The Syntax is very similar to VisualBasic. The compiler understands
For and While loops and If Then Else statements. Comments start with a single quote ' and end at the next line break.

Compilation: The syntax is "pbcompiler.bat filename.bas". After a successful run a file named "filename.bin" is created. If you don't use the script you can invoke the compiler with the command "java -jar pbcompiler.jar filename.bas".

Upload: The syntax is "send filename.bin particleId". Filename.bin is the file created by the ParticleBasic compiler, particleId identifies the Particle you want to program, an example Id looks like If you don't know the ID of the Particle you can use the ParticleAnalyzer to search for Particles. If you don't use the given script you can start the upload utility with the ommand "java -jar send.jar filename.bin particleId". After a successful upload the VM should load the received code into its memory and execute it. As the byte code is stored in the flash memory it is preserved during reboots of the Particle Computer.


Further Resources