Recent content by ednl

  1. E

    Teensy 4.0 SoftPWM example fails

    Thank you. Yes, that works. I made this for a ~linear looking heartbeat:#define BASE 7.5 void setup() { Serial.begin(115200); while (!Serial); } void loop() { float x = 0.0, inc = 0.01, amp = 255.0 / (BASE - 1); int y; while (x >= 0 && x <= 1) { y = (int)(amp * (pow(BASE, x) - 1) +...
  2. E

    Teensy 4.0 SoftPWM example fails

    Sure. I don't think they can be used for the built-in LED, though. Also I'm sure the code will work, at least to some degree, if I just insert a cast. My point was more that this basic example fails which rather discouraged me and might others.
  3. E

    Teensy 4.0 SoftPWM example fails

    Hi, I loaded the SoftPWM_Arduino_LED_Blink example and it fails to compile:/Applications/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/SoftPWM/SoftPWM.cpp: In function 'void SoftPWMSet(int8_t, uint8_t, uint8_t)'...
Back
Top