Are SimpleIDE Terminal's special codes working?
DamirX
Posts: 12
Good time!
Sample of C - code:
#include "simpletools.h" // Include simpletools
int main() // main function
{
while(1) // Endless loop
{
high(26); // Set P26 I/O pin high
print(BEEP); // Shoud it BEEP?
print("*");
pause(30); // Wait 1/10 second
low(26); // Set P26 I/O pin low
pause(970); // Wait another 1/10 second
}
}
But there are no sound. Other codes did not work too.
All functions in simple ide options are turned on. If show hexadecimal Input is turned on some codes are printed, but BEEP does nothing.
What I'm doing wrong?
Sample of C - code:
#include "simpletools.h" // Include simpletools
int main() // main function
{
while(1) // Endless loop
{
high(26); // Set P26 I/O pin high
print(BEEP); // Shoud it BEEP?
print("*");
pause(30); // Wait 1/10 second
low(26); // Set P26 I/O pin low
pause(970); // Wait another 1/10 second
}
}
But there are no sound. Other codes did not work too.
All functions in simple ide options are turned on. If show hexadecimal Input is turned on some codes are printed, but BEEP does nothing.
What I'm doing wrong?
Comments
You need to use the "run with terminal" option from SimpleIDE.
On my computer I get the windows 'dunk' sound (windows defaultbeep) 10 times.
Note that with Propeller C you can use the "printi()" function instead of "print()" and save about 4k bytes, as long as you are not printing a floating point number.
Hope this helps
Tom
Tom