Skip to content
ozarchie edited this page Nov 22, 2016 · 7 revisions

Syntax

CONFIG POWER, <level>
CONFIG MILLIS, <time>

Description

  1. Set the power mode for BlueBasic board.
    This is specific to Tim Wilkinson's board and the on-board power supply.
  2. Set the current millisecond timer.

For example:

1000 CONFIG POWER, 1
2000 CONFIG MILLIS, 1000

Line 1000 above sets the power mode on the TW (Petra) BlueBasic board to Mode 1.
Mode 0: Boost converter is always off
Mode 1: Boost converter if always on
Mode 2: Boost convert is on when awake, off when asleep

Line 2000 above sets the current millisecond time to 1000.