Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/billiegoose/camera-in-use-led
Turns the LED on a TinyPICO on when your Macbook webcam is in use
https://github.com/billiegoose/camera-in-use-led
Last synced: 24 days ago
JSON representation
Turns the LED on a TinyPICO on when your Macbook webcam is in use
- Host: GitHub
- URL: https://github.com/billiegoose/camera-in-use-led
- Owner: billiegoose
- Created: 2021-07-31T05:34:39.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-08-03T14:40:10.000Z (over 3 years ago)
- Last Synced: 2024-10-06T03:24:07.465Z (3 months ago)
- Language: Python
- Size: 22.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Example usage
```sh
node osx/ble.js 'on,0,255,0,1' # Turn LED on, set color to bright greennode osx/ble.js 'off' # Turn LED off, set color to bright green
node osx/main.js # Monitors the webcam, turns LED red when in use, off when not in use
```# Thanks
This is a hacked together mess from stack overflow and code examples from various sources:
- [MacOS - detect when camera is turned on/off](https://stackoverflow.com/questions/60535678/macos-detect-when-camera-is-turned-on-off/65098443#65098443)
- [Micropython BLE examples](https://github.com/micropython/micropython/tree/f6fd46c4024c28c827ccffd13dbe02b9ea74cfb8/examples/bluetooth)
- [bleterm2 source code](https://github.com/josschne/bleterm2/blob/f5eedccae85ac773f501e8f1c935c74f68d07148/index.js)# License
MIT