Code is working in Arduino Eclipse IDE. For Using with Arduino IDE need to remove arduino.h header.
/Example/fake_diode.ino This test code example simulate fake meter. Meter is replaced by regular LED. Diode blink about 40us with delay set by user in function FakeBlink. 40us LED blink is typical amount of time generated by meter, because of consume 1Wh.
Info in Polish. https://pcratownik.pl/category/projekty/monitoring-energii/