import hal and: hal.set_p("pinname","value")
set_p or "setp" should be universal between pins and parameters. hal.Pin is specifying the Pin class, but you are trying to set a parameter. hal.Param may also work in the same vein as your original attempt on a parameter. On Sunday, May 17, 2020 at 2:31:13 PM UTC-4, Michael Brown wrote: > > Is it possible to set module parameters directly in python based hal > configs without using the shell ? > if I attempt doing: > > hal.Pin('hm2_5i25.0.gpio.018.invert_output').set(true) > > I get an error about missing pin. > > So far below construct is all I can get to work: > > os.system('halcmd setp hm2_5i25.0.gpio.018.invert_output true') > > -- website: http://www.machinekit.io blog: http://blog.machinekit.io github: https://github.com/machinekit --- You received this message because you are subscribed to the Google Groups "Machinekit" group. To unsubscribe from this group and stop receiving emails from it, send an email to machinekit+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/machinekit/580f1542-fd30-4dcc-9d24-5bd46d89115d%40googlegroups.com.