Could you please share steps to calculate effective power applied to a resistive load over time?
Since local power is 50Hz instead of 60 used in the code:
// Time table to set triacs (50us tick)
// This is the number of ticks after zero crossing that we should wait before activating the
// triac, where the array index is the applied power from 1 to 100, minus one. This array is
// calculated based on the equation of the effective power applied to a resistive load over
// time, assuming a 60HZ sinusoidal wave.