Difference: BoardSupportPackageWBfeather (21 vs. 22)

Revision 222021-07-27 - PeterSchmid

Line: 1 to 1
 
META TOPICPARENT name="WebHome"
%DASHBOARD{ section="banner"
Line: 78 to 78
 dmod ( u a -- ) sets the pin mode: 0 in, 1 in pull-up, 2 in pull-down, 3 out push pull, 4 out open drain, 5 out push pull PWM, 6 input capture, 7 output compare, 8 I2C, 9 USART, 10 analog
Changed:
<
<
EXTImod ( u a -- ) Sets for pin a (D11, D12, D13) the EXTI mode u: 0 rising, 1 falling, 2 both edges, 3 none EXTIwait ( u a -- ) Wait for EXTI interrupt on pin a (D11, D12, D13), timeout u in [ms]
>
>
EXTImod ( u a -- ) Sets for pin a (D5, D6, D11, D13) the EXTI mode u: 0 rising, 1 falling, 2 both edges, 3 none EXTIwait ( u a -- ) Wait for EXTI interrupt on pin a (D5, D6, D11, D13), timeout u in [ms]
  pwmpin! ( u a -- ) sets the digital output port pin a (D0=0, D1=1, A4=20) to a PWM value u (0..1000). Default frequency is 1 kHz, TIMER1
Line: 406 to 406
 : exti-test ( -- ) 2 5 EXTImod \ both edges on D5 begin
Changed:
<
<
2000 5 EXTIwait \ wait for edge on D5 (button C) with 2 s timeout
>
>
5 2000 EXTIwait \ wait for edge on D5 (button C) with 2 s timeout
  cr 0= if
    1. dpin@ if
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback