Hi, I'm just starting to look at Zerynth after having played with C and Arduino for a while now.
One thing I like about the Arduino IDE is it allows direct access to the hardware registers. e.g. for Arduino Nano and Mega the timer registers TCCR1A, TCCR1B, TIMSK1 etc can all be directly referenced in the program. This makes it very simple to use a timer to create a PPM output stream (for control of R/C toys), as it requires only some register settings and an ISR with two lines of code in it. There is no code at all required in the main loop. Similarly the port registers DDRB etc can be manipulated. This also works for the Due, where e.g. PIOA_SODR can be referenced, although in the Arduino it has to be referanced as REG_PIOA_SODR. (I've never discovered where these names are defined however...). Also works with Teensy35 (e,g, ADC1_SC1A).
So, is it possible to reference registers in Zerynth? Or is it preferable to use builtin functions? I've only just begun exploring those (adc.read etc) so haven't really wrapped my head around it all yet. But it seems there may be some cases to use the registers, for more fine grained control of PWM for instance, or use the ADC in free running mode.
All advice gratefully received.