<< return to Vizycam.com

User Tools

Site Tools


wiki:api_vizypowerboard

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
wiki:api_vizypowerboard [2021/10/07 16:43]
vizycam
wiki:api_vizypowerboard [2021/10/07 16:47]
vizycam
Line 22: Line 22:
   pb.vcc12(True)   pb.vcc12(True)
  
-will enable the 12V [[wiki:​pinouts|12V output pin]].  ​+will enable the 12V on the [[wiki:​pinouts|12V output pin]].  ​
  
   pb.io_set_mode(0,​ vpb.IO_MODE_HIGH_CURRENT)   pb.io_set_mode(0,​ vpb.IO_MODE_HIGH_CURRENT)
Line 28: Line 28:
  
 will set [[wiki:​pinouts|B0]] as a high-current output and set it to logic high (3.3V).  ​ will set [[wiki:​pinouts|B0]] as a high-current output and set it to logic high (3.3V).  ​
 +  ​
 +  pb.led_unicorn()
 +
 +will cycle the LED through pretty colors (''​%%pb.led()%%''​ will turn off.)
  
   pb.power_off_requested(True)   pb.power_off_requested(True)
wiki/api_vizypowerboard.txt ยท Last modified: 2022/02/18 23:14 by freed