Leds work simultanously. Version 3.1

Dependencies:   HCSR

Dependents:   bertl_led bertl_led bertl_led bertl_led ... more

Fork of Bertl by Bertl_Team_PE

Embed: (wiki syntax)

« Back to documentation index

config.h File Reference

config.h File Reference

A Documented file. name: config.h Version: 3.2
author: PE HTL BULME
email: pe@bulme.at
description: Wiring for ur_Bertl The Robot. More...

Go to the source code of this file.

Functions

BusOut NibbleLEDs (P1_8, P1_9, P1_10, P1_11)
 4 yellow LEDs as a bus defined; use it i.e.
DigitalOut LED_D10 (P1_8)
 wiring first LED_D10
DigitalOut LED_D11 (P1_9)
 wiring second LED_D11
DigitalOut LED_D12 (P1_10)
 wiring thired LED_D12
DigitalOut LED_D13 (P1_11)
 wiring fourth LED_D13
DigitalOut LED_blue (P1_28)
 all blue LEDs are on Port 1_28
DigitalOut RGB_blue (P1_24)
 RGB blue component of the color uP -> Port 1_24.
DigitalOut RGB_red (P1_23)
 RGB red component of the color uP -> Port 1_23.
DigitalOut RGB_green (P1_25)
 RGB green component of the color uP -> Port 1_25.
BusIn linesensor5 (p18, p16, p20, p19, p17)
 Bertl15 additonal Sensor in the middle.
DigitalIn SensorL (P1_12)
 motor sensor left on Port P1_12
DigitalIn SensorR (P1_13)
 motor sensor right on Port P1_13

Detailed Description

A Documented file. name: config.h Version: 3.2
author: PE HTL BULME
email: pe@bulme.at
description: Wiring for ur_Bertl The Robot.

Definition in file config.h.


Function Documentation

DigitalOut LED_blue ( P1_28   )

all blue LEDs are on Port 1_28

DigitalOut LED_D10 ( P1_8   )

wiring first LED_D10

DigitalOut LED_D11 ( P1_9   )

wiring second LED_D11

DigitalOut LED_D12 ( P1_10   )

wiring thired LED_D12

DigitalOut LED_D13 ( P1_11   )

wiring fourth LED_D13

BusIn linesensor5 ( p18  ,
p16  ,
p20  ,
p19  ,
p17   
)

Bertl15 additonal Sensor in the middle.

BusOut NibbleLEDs ( P1_8  ,
P1_9  ,
P1_10  ,
P1_11   
)

4 yellow LEDs as a bus defined; use it i.e.

: karel.NibbleLeds(karel.GetLineValues()); to show line sensor values

DigitalOut RGB_blue ( P1_24   )

RGB blue component of the color uP -> Port 1_24.

DigitalOut RGB_green ( P1_25   )

RGB green component of the color uP -> Port 1_25.

DigitalOut RGB_red ( P1_23   )

RGB red component of the color uP -> Port 1_23.

DigitalIn SensorL ( P1_12   )

motor sensor left on Port P1_12

DigitalIn SensorR ( P1_13   )

motor sensor right on Port P1_13