Skip to content

deepcoder/BluetoothLEDBadge

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

BLE Name Badge

Python script to set contents of Bluetooth low energy enabled LED name badges. You can buy them e.g. on Aliexpress, I bought mine on 35c5 from @fossasia. There is an official app from the seller and a FOSS android app written in Kotlin by @Nilhcem.

As I didnt want to run the "official" app and as I do not use an Android phone i wrote this python script. @Nilhcem's app as well as his blog post were very helpful!

Installing

# apt install gattool
$ git clone https://github.com/M4GNV5/BluetoothLEDBadge

Usage

usage: blebadge.py [-h] [--speed {1,2,3,4,5,6,7,8}]
                   [--mode {left,right,up,down,fixed,cycle,falldown,television,laser}]
                   [--blink] [--marquee] --mac MAC [--text TEXT] [--file FILE]

Set content of BLE LED Name Badge

optional arguments:
  -h, --help            show this help message and exit
  --speed {1,2,3,4,5,6,7,8}
                        Set animation speed
  --mode {left,right,up,down,fixed,cycle,falldown,television,laser}
                        Set animation mode
  --blink               Enable message blinking
  --marquee             Enable moving circle around text
  --mac MAC             The MAC address of the badge
  --text TEXT           The text to send to the badge
  --file FILE           Input file to read texts from. Format is <speed
                        1-8>,<mode>,<blink 0|1>,<marquee 0|1>,<text ...>. One
                        message per line, up to 8 messages are supported

About

Python script to set contents of Bluetooth low energy enabled LED name badges.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%