|
Post by mjb on Jun 11, 2015 8:20:03 GMT
Most Arduino Processing language functions have been implemented. The exceptions are:
tone() notone()
interrupts() Workaround: you can use __enable(); We will implement this in the next release nointerrupts() Workaround: you can use __disable(); We will implement this in the next release
|
|
|
Post by Wolverine on Mar 9, 2017 6:08:49 GMT
Hi. Is this updated yet? In the IDE v 1.31?
|
|
|
Post by Admin on Mar 9, 2017 8:50:07 GMT
interrupts() and nointerrupts() are now supported. The tone functions are not but these could be emulated using analogWrite() now that the PWM frequency is infinitely variable using useCustomPwmFreq(x):
It is possible to set any PWM frequency using the useCustomPwmFreq() function:
/* Use 4000Hz carrier */ useCustomPwmFreq(4000);
The maximum frequency that may be set is 390kHz. The minimum is 6Hz.
If you want to change the PWM frequency after calling analogWrite(x,y), use the following functions:
AnalogOut_2_Reset(); // Allow analog channel 2 to be altered useCustomPwmFreq(3900); // Change to 3900Hz carrier
analogWrite(2, 128); // Write 50% duty ratio at 3900Hz carrier
|
|
|
Post by Admin on Mar 9, 2017 8:51:40 GMT
The current priority for new features is:
(i) Ethernet bootloader/reprogramming feature (ii) tone functions
|
|