- Release V1.00 (Aug 23, 2017)
wget https://github.com/CoolerMasterTechnology/MASTERWATT_MAKER_1200_1500_RASPBERRY_PI/archive/master.zip
unzip master.zip
sudo apt-get install python-serial
-
pyserial (for Python)
sudo apt-get install python-serial
orpip install pyserial
-
python-shell (for Node.JS)
npm install python-shell
-
#Enable Serial (on Raspberry Pi)
python BlockingModeDemo.py
python NonBlockingModeDemo.py
node NodeApp.js
- MasterWatt1200W() <-- Constructor. Defalut: MasterWatt1200W(serialPort = "/dev/ttyAMA0")
- currentVersion() <-- Get Current Version by String.
- getData() <-- Get Current Power Supply Monitor Data by Dictionary.