Skip to content

Commit

Permalink
v1.0.17
Browse files Browse the repository at this point in the history
  • Loading branch information
IsakiMatsubara committed Apr 20, 2023
1 parent 1e0f622 commit 97da908
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions plenbit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -734,6 +734,16 @@ namespace plenbit {
//% block="eye led is %LedOnOff"
//% weight=10 group="PLEN:bit v1"
export function eyeLed(LedOnOff: LedOnOff) {
//v2対応

if (LedOnOff) {
setColor(NeoPixelColors.Green)
} else {
setColor(NeoPixelColors.Black)
}

//NeoPixel通信終わるまでpause
basic.pause(1)
pins.digitalWritePin(DigitalPin.P8, LedOnOff)
pins.digitalWritePin(DigitalPin.P16, LedOnOff)
}
Expand Down

0 comments on commit 97da908

Please sign in to comment.