Since that code was migrated from Arduino, I should invert pin
Attach a file by drag & drop or click to upload