Prusa MINI Firmware overview
createSpeedLookupTable Namespace Reference

Variables

 parser = argparse.ArgumentParser(description=__doc__)
 
 type
 
 int
 
 default
 
 help
 
 args = parser.parse_args()
 
int cpu_freq = args.cpu_freq * 1000000
 
int timer_freq = cpu_freq / args.divider
 
list a = [ timer_freq / ((i*256)+(args.cpu_freq*2)) for i in range(256) ]
 
list b = [ a[i] - a[i+1] for i in range(255) ]
 
 end
 

Variable Documentation

◆ parser

createSpeedLookupTable.parser = argparse.ArgumentParser(description=__doc__)

◆ type

createSpeedLookupTable.type

◆ int

createSpeedLookupTable.int

◆ default

createSpeedLookupTable.default

◆ help

createSpeedLookupTable.help

◆ args

createSpeedLookupTable.args = parser.parse_args()

◆ cpu_freq

int createSpeedLookupTable.cpu_freq = args.cpu_freq * 1000000

◆ timer_freq

int createSpeedLookupTable.timer_freq = cpu_freq / args.divider

◆ a

list createSpeedLookupTable.a = [ timer_freq / ((i*256)+(args.cpu_freq*2)) for i in range(256) ]

◆ b

list createSpeedLookupTable.b = [ a[i] - a[i+1] for i in range(255) ]

◆ end

createSpeedLookupTable.end