Skip to main content

Manager for simple character LCDs

Project description

A simple manager for two-line LCD displays.

Specifically, this was created for the Adafruit USB + Serial Backpack Kit with 16x2 RGB backlight negative LCD - RGB on Black, but this should be easily adaptable to many other character LCD displays.

URLS

/: Index

URL Index

  • GET: Display all endpoints and acceptable methods.

/brightness/: Brightness

Screen brightness.

  • GET: Return brightness.

  • PUT: Set brightness.

/contrast/: Contrast

Screen contrast.

  • GET: Return contrast.

  • PUT: Set contrast.

/flash/: Flash Messages

Short-duration single-time announcements.

  • GET: Get the current flash message (if one exists).

  • PUT: Set the flash message to a given message object.

  • DELETE: Delete the current flash message (if one exists).

/message/: Messages

List or create a message to add to the message rotation.

  • GET: Get a list of all current messages.

  • POST: Add a new message to the list of messages to cycle through.

/message/<message_id>/: Message Details

Create, delete, or alter an existing message.

  • GET: Get an existing message object for a given ID.

  • PUT: Replace an existing message object for a given ID.

  • PATCH: Update an existing message object for a given ID.

  • DELETE: Delete an existing message object for a given ID.

Message Object

{
    'message': 'Any message',
    'id': 'An ID',  # Optional; will be set automatically if unspecified
    'color': [255, 255, 255], # Optional; set the color
    'blink': [
        [255, 0, 0],
        [0, 0, 0]
    ], # Optional; cycle through these colors
    'expires': 'Sun, 9 June 2013, 22:45 PDT', # Optional; Can also be an integer number of seconds from the current time
    'timeout': 300,  # Optional; Only for flash messages; Number of seconds until message disappears
    'backlight': True,  # Optional; Backlight on or off
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

twoline-0.6.2.tar.gz (7.6 kB view details)

Uploaded Source

File details

Details for the file twoline-0.6.2.tar.gz.

File metadata

  • Download URL: twoline-0.6.2.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for twoline-0.6.2.tar.gz
Algorithm Hash digest
SHA256 8868525b513ba275af4253ce4d564a8b8f9ebf2b73a8fda9826cc64c66379737
MD5 2e6ba066b8263fda22a007171bc7587f
BLAKE2b-256 a7f8d6e0a1ff7b154b4cb651b6c27250bd0361d82d58735941e2c6735e4b07b9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page