···11-if :GenModeP==1 then :GenModeNb++ :GenModeP=0 end goto1
22-33-44-55-66-77-88-99-1010-1111-1212-1313-1414-1515-1616-1717-1818-1919-// SHIP ENERGY MANAGEMENT By Jericho (Discord: jericho#1060)
2020-// https://github.com/Jericho1060/sb-energy-management
-20
button2.yolol
···11-if :GenModeM==1 then :GenModeNb-- :GenModeM=0 end goto1
22-33-44-55-66-77-88-99-1010-1111-1212-1313-1414-1515-1616-1717-1818-1919-// SHIP ENERGY MANAGEMENT By Jericho (Discord: jericho#1060)
2020-// https://github.com/Jericho1060/sb-energy-management
-20
buttons_group.yolol
···11-if :GenModeP==1 then :GenModeNb++ :GenModeP=0 end
22-if :GenModeM==1 then :GenModeNb-- :GenModeM=0 end
33-if :GenModeNb<3 then :GenModeNb=6 end
44-if :GenModeNb>6 then:GenModeNb=3 end goto1
55-66-77-88-99-1010-1111-1212-1313-1414-1515-1616-1717-1818-1919-// SHIP ENERGY MANAGEMENT By Jericho (Discord: jericho#1060)
2020-// https://github.com/Jericho1060/sb-energy-management
-20
higher_limit.yolol
···11-if :GenModeNb>6 then:GenModeNb=3 end goto1
22-33-44-55-66-77-88-99-1010-1111-1212-1313-1414-1515-1616-1717-1818-1919-// SHIP ENERGY MANAGEMENT By Jericho (Discord: jericho#1060)
2020-// https://github.com/Jericho1060/sb-energy-management
-20
lower_limit.yolol
···11-if :GenModeNb<3 then :GenModeNb=6 end goto1
22-33-44-55-66-77-88-99-1010-1111-1212-1313-1414-1515-1616-1717-1818-1919-// SHIP ENERGY MANAGEMENT By Jericho (Discord: jericho#1060)
2020-// https://github.com/Jericho1060/sb-energy-management
···19192020## Elements required
21212222-- 6 `Basic YOLOL chips` (you can only use 3 but the performance will be slower)
2222+- 2 `Basic YOLOL chips`
2323- 1 `Text panel 24x24`
2424- 2 `Simple buttons 12x12`
2525-- 1 `YOLOL memery chip`
2626-- 7 `YOLOL chip sockets` or 3 `YOLOL Racks 48x48` with 1 `YOLOL Rack chip slot(2 slots)` and 2 `YOLOL Rack chip slot (3 Slots)`
2525+- 1 `YOLOL memory chip`
2626+- 3 `YOLOL chip sockets`
27272828## Example for Mounting the display and buttons
2929···65656666
67676868-6968## Memory chip
70697170On the memory chip, just replace the 1st field with the name `GenModeNb` and set it to `4` (this is the value for auto power)
···74737574## Scripts
76757777-If you are using 6 you can copy each of the folowing files on a single basic chip and plug them:
7676+Copy and paste these both scripts (line by line) on the two basic chips
78777978- `main.yolol` will manage the fuel chmaber rate depending on th emode you selected
8080-- `screen.yolol` will manage the display on the text panel
8181-- `button1.yolol` will manage the press on the bottom button
8282-- `button2.yolol` will manage the press on the top button
8383-- `higher_limit.yolol` will reset the value of `GenModeNB` to shutdown if it goes higher than the overide
8484-- `higher_limit.yolol` will reset the value of `GenModeNB` to override if it goes lower than the shutdown
7979+- `selector.yolol` will manage the display on the text panel
8080+8181+## Credits
85828686-if you are only using 3 chips, you only need these 3 scripts : `main.yolol`, `screen.yolol`, `buttons_group.yolol`.
8787-The third one will regroupe the 4 that are managing the button states and the limits.
8383+Special Thanx to Daveman42 for the help on the selector.
88848985## Support or donation
9086
···11+n="\n" l=n+" 2> Shutdown"+n+" 3> Auto"+n+" 4> Half"+n+" 5> Override"
22+v=:GMP-:GMM if v then :GM+=v :GM+=(:GM<2)*4-(:GM>5)*4 else goto3 end
33+ax=" "+:GM :GMP=0 :GMM=0 :GenMode=l-ax-"2>"-"3>"-"4>"-"5>" goto2
44+55+66+77+88+99+1010+1111+1212+1313+1414+1515+1616+1717+1818+// SHIP ENERGY MANAGEMENT By Jericho (Discord: jericho#1060)
1919+// https://github.com/Jericho1060/sb-energy-management
2020+// special thanx to Daveman42 for the help on the rework