Module SharedConstants
[hide private]
[frames] | no frames]

Module SharedConstants

source code


Constants and defaults for the RaspiBrick libray based on Pi2Go (full version) from 4tronix.

 This software is part of the raspibrick module.
 It is Open Source Free Software, so you may
 - run the code for any purpose
 - study how the code works and adapt it to your needs
 - integrate all or parts of the code in your own programs
 - redistribute copies of the code
 - improve the code and release your improvements to the public
 However the use of the code is entirely your responsibility.

Variables [hide private]
  VERSION = '1.36 - Apr 2017'
  DISPLAYED_VERSION = '136'
  DEBUG = False
  BLINK_CONNECT_DISCONNECT = True
  P_LEFT_FORWARD = 26
  P_LEFT_BACKWARD = 24
  P_RIGHT_FORWARD = 19
  P_RIGHT_BACKWARD = 21
  P_FRONT_CENTER = 13
  P_FRONT_LEFT = 11
  P_FRONT_RIGHT = 7
  P_LINE_LEFT = 12
  P_LINE_RIGHT = 15
  P_BUTTON = 16
  P_TRIG_ECHO = 8
  P_BATTERY_MONITOR = 18
  MOTOR_PWM_FREQ = 30
  LEFT_MOTOR_PWM = [0, 0]
  RIGHT_MOTOR_PWM = [0, 0]
  MOTOR_LEFT = 0
  MOTOR_RIGHT = 1
  IR_CENTER = 0
  IR_LEFT = 1
  IR_RIGHT = 2
  IR_LINE_LEFT = 3
  IR_LINE_RIGHT = 4
  LED_FRONT = 0
  LED_LEFT = 1
  LED_REAR = 2
  LED_RIGHT = 3
  PWM_I2C_ADDRESS = 64
  PWM_FREQ = 50
  ADC_I2C_ADDRESS = 72
  LS_FRONT_LEFT = 0
  LS_FRONT_RIGHT = 1
  LS_REAR_LEFT = 2
  LS_REAR_RIGHT = 3
  SERVO_0 = 12
  SERVO_1 = 13
  SERVO_2 = 14
  SERVO_3 = 15
  MOTOR_DEFAULT_SPEED = 40
  GEAR_AXE_LENGTH = 0.05
  GEAR_DEFAULT_SPEED = 30
  GEAR_FORWARD_SPEED_DIFF = 0.5
  GEAR_BACKWARD_SPEED_DIFF = 0.5
  BUTTON_PRESSED = 1
  BUTTON_RELEASED = 2
  BUTTON_LONGPRESSED = 3
  BUTTON_CLICKED = 4
  BUTTON_DOUBLECLICKED = 5
  BUTTON_LONGPRESS_DURATION = 2
  BUTTON_DOUBLECLICK_TIME = 1
  PATTERN = {' ': 0, '!': 134, '"': 34, '#': 0, '$': 0, '%': 0, ...
  CONFIG_FILE = '/home/pi/scripts/raspibrick.cfg'
  APP_PATH = '/home/pi/scripts/MyApp'
  POLL_DELAY = 50
  ABOUT = '2003-2016 Aegidius Pluess\nOpenSource Free Software\n...
  __package__ = None
Variables Details [hide private]

PATTERN

Value:
{' ': 0,
 '!': 134,
 '"': 34,
 '#': 0,
 '$': 0,
 '%': 0,
 '&': 0,
 '\'': 2,
...

ABOUT

Value:
'''2003-2016 Aegidius Pluess
OpenSource Free Software
http://www.aplu.ch
All rights reserved'''