I started using build for simple programs, it’s pretty nice, but is there a serial monitor? I’d like to be able to send numbers and text to my spark, like I did with arduinos. I’ve been looking around, but couldn’t find anything on the topic.
Also, is there any other GUI that I can write code for the spark for, like the arduino IDE? I know that arduino doesn’t work, it would be cool if there was a custom arduino IDE that was made for spark (since isn’t arduino all open-source?) I’m mostly interested in that for the serial monitor. I see you can compile code and do serial monitoring using command line, but I’m positively awful with computers and would rather not
There is not any official desktop GUI for building with the Spark Core. There are a few different ways that are available for doing so, but they do require a bit of setup to get going. You can use any IDE that you would like, but building and flashing aren’t quite as one-click as the Arduino IDE. The Spark CLI makes things a lot easier, but it’s still all done on the command line. I can’t say that I blame you about not wanting do go through that hassle. I know how to do it, but I’d also rather not sometimes!
In the meantime, there is an article written in the forums for Installing the USB Driver on Windows & Serial Debugging (assuming you’re using Windows). If not, let us know and we can help steer you towards the easiest options for your operating system.
As soon as you’ve got those drivers installed, you can actually use the serial monitor from the arduino IDE. I guess a lot of people are used to it, but there are other alternatives as well.
Getting familiar with the CLI is something I strongly suggest doing. It’s not as hard as it seems, and for the ‘regular user’, a few simple commands are sufficient. I primarily use it to flash locally, using the .bin file from the web IDE. It’s a lot quicker (approx. 10 seconds). You can also use it for serial monitoring, which isn’t hard either. You simply have to type in “Spark serial monitor”, and that’s it. So in my opinion it’s definitely worthwhile getting to know the CLI.
@Moors7 Whenever I flash a firmware to it locally in dfu mode I cont open a serial port monitor. I have no idea how to monitor the port and run the program at the same time.
@Jaybuilder98, I have to ask… do you have a Serial.begin() in your app’s setup()? If not, the Core will not enable its serial port and you will not see the device on your PC.
In order to use Serial.print() to show debug messages in the terminal, you need to have Serial.begin(baud) in setup()! Note, however, that you should not have Serial.print() statements if you don’t have Serial.begin()