Difference: BoardSupportPackageFirefly (43 vs. 44)

Revision 442025-02-15 - PeterSchmid

Line: 1 to 1
 
META TOPICPARENT name="WebHome"
%DASHBOARD{ section="banner"
Line: 29 to 29
 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
Changed:
<
<
EXTImod ( u a -- ) Sets for pin a (D2, D4, D7, D10) the EXTI mode u: 0 rising, 1 falling, 2 both edges, 3 none EXTIwait ( u a -- ) Wait for EXTI interrupt on pin a (D2, D4, D7, D10), timeout u in [ms]
>
>
EXTImod ( u a -- ) Sets for pin a (D3, D5, D6, D7) the EXTI mode u: 0 rising, 1 falling, 2 both edges, 3 none EXTIwait ( u a -- ) Wait for EXTI interrupt on pin a (D3, D5, D6, D7), 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 pwmprescale ( u -- ) Sets the PWM prescale for TIMER1. 32 kHz / prescale, default 32 -> PWM frequency 1 kHz
Line: 309 to 309
 

Using EXTI line

Changed:
<
<
EXTI port pins: D2 (PB5), D3 (PB4), D5 (PB3), D6 (PB2), D7 (PB1)
>
>
EXTI port pins: D3 (PB4), D5 (PB3), D6 (PB2), D7 (PB1)
 
: exti-test ( -- )

Changed:
<
<
2 2 EXTImod \ both edges on D2
>
>
2 3 EXTImod \ both edges on D3
  begin
Changed:
<
<
2000 2 EXTIwait \ wait for edge on D2 with 2 s timeout
>
>
2000 3 EXTIwait \ wait for edge on D3 with 2 s timeout
  cr 0= if
Changed:
<
<
    1. dpin@ if
>
>
    1. dpin@ if
  ." rising edge" else ." falling edge"
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback