Merge pull request #21 from lurch/patch-1

Remove redundant linefeed
This commit is contained in:
Alasdair Allan 2021-02-25 11:12:39 +00:00 committed by GitHub
commit ca2cc6673f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -1,5 +1,4 @@
from machine import Pin
p2 = Pin(2, Pin.IN, Pin.PULL_UP)
p2.irq(lambda pin: print("IRQ with flags:", pin.irq().flags()),
Pin.IRQ_FALLING)
p2.irq(lambda pin: print("IRQ with flags:", pin.irq().flags()), Pin.IRQ_FALLING)