Arduino project

Discussion of issues related specifically to writing code for native mode devices. This includes ZBasic code as well as assembly language code and C code, both inline and standalone.
Post Reply
GTBecker
Posts: 616
Joined: 17 January 2006, 19:59 PM
Location: Cape Coral

Arduino project

Post by GTBecker »

Do I understand correctly that the only difference between one Arduino-on-ZBasic project and another is the .cpp in the project file?

Code: Select all

Option Arduino "C:/ZBasic_Projects/Arduino"

Sub Main()
'	Debug.Print "Running Arduino code"
	Call arduino_setup()
	Do
		Call arduino_loop()
	Loop
End Sub
... is common code? In App Note 223. that code is named ArduinoBlink.bas, but there is nothing specific to the Blink project in it. Can it not simply be Arduino.bas, used in all such projects?
Tom
dkinzer
Site Admin
Posts: 3120
Joined: 03 September 2005, 13:53 PM
Location: Portland, OR

Re: Arduino project

Post by dkinzer »

GTBecker wrote:Can it not simply be Arduino.bas, used in all such projects?
Yes, for a pure Arduino application. However, it is possible to add more ZBasic code and calls to it in the Main().
- Don Kinzer
Post Reply