Skip to content

Commit

Permalink
add power fake for sim (#189)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisDick authored Aug 4, 2024
1 parent 2a196c3 commit c7ba4e4
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions sim/fakes/power.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@


def Off():
return

def BatteryChargeState():
return "Not Charging"

def BatteryLevel():
return 95.0

def Enable5V():
return

def Fault():
return {'Charge': 'Normal', 'Battery': 'Normal', 'Boost': 'Normal'}

def SupplyCapabilities():
return [ ('fixed', 3000, 5)]

def Icharge():
return 0.0

def Vbat():
return 3.7

def Vin():
return 5.0

def Vsys():
return 4.2

0 comments on commit c7ba4e4

Please sign in to comment.