Skip to content

Commit

Permalink
Fixed a couple of typos in gated.py
Browse files Browse the repository at this point in the history
  • Loading branch information
dhylands committed Jan 14, 2015
1 parent 28d8d75 commit 3fe3bce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gated.py
Expand Up @@ -6,7 +6,7 @@
# Y1 corresponds to Timer 8 channel 1, which we'll use as output
# X1 corresponds to Timer 2 channel 1, which we'll use an the input gate
#
# We'll confgure X1 as a GPIO and initially drive it high (which corresponds
# We'll confgure Y1 as a GPIO and initially drive it high (which corresponds
# to not counting). Then we'll toggle that pin when the user presses a key.

y1 = pyb.Pin('Y1', pyb.Pin.OUT_PP)
Expand Down Expand Up @@ -54,7 +54,7 @@
ch1 = tim2.channel(1, pyb.Timer.IC, pin=pyb.Pin.board.X1, polarity=pyb.Timer.FALLING)

# We'll need to set the SMS=101 and TS=101 in the SMCR register ourselves,
# since none of the exposed APIs maniipulate that register.
# since none of the exposed APIs manipulate that register.
#
# SMS is bits 2:0 and TS is bits 6:4

Expand Down

0 comments on commit 3fe3bce

Please sign in to comment.