Engineering and technology

delayMicroseconds() – crash · Issue #2240 · esp8266/Arduino · GitHub

ESP12F

I’m working on a PWM Routine (not finished still in progress) which did crash for some reason (code#1)

 

 

reason is that your whole routine is fully blocking for the cpu and it takes more than the watch dog permits (thus triggering soft wdt reset). The reason why it does not crash when you add delay() is that delay() actually switches the context back to the system while you are delaying and feeding the watchdog this way.

void delayMicroseconds(uint32_t us){
  uint32_t start = micros();
  while(micros() - start < us){}
}

void delay(uint32_t ms){
  uint32_t start = millis();
  while(millis() - start < ms){
    yield();//give the system a chance to execute
  }
}

 

 

 

Source: delayMicroseconds() – crash · Issue #2240 · esp8266/Arduino · GitHub

Inverted colors issues with H3 devices · Issue #55 · jernejsk/OpenELEC-OPi2 · GitHub

I have a Sony Bravia TV and since the very beggining some models of this band and few others invert the HDMI colors if the input was not providing RGB 4:4:4 Pixel Format PC Standard (Full RGB) output.
The manufacters never updated the affected models and they won’t see that as a issue. So my solution to every device I have is to output the video in RGB 4:4:4 Pixel Format PC Standard (Full RGB).

Source: Inverted colors issues with H3 devices · Issue #55 · jernejsk/OpenELEC-OPi2 · GitHub