diff --git a/README.md b/README.md new file mode 100644 index 0000000..c75be36 --- /dev/null +++ b/README.md @@ -0,0 +1,4 @@ +files description: + deploy -- creates venv and installs python libs in it + run -- resets Generator_PCB by toggling PRi`s GPIO pin, activates venv and runs main program + diff --git a/run b/run index abff95d..3d0615b 100755 --- a/run +++ b/run @@ -1,3 +1,7 @@ #!/usr/bin/bash +#reset generator PCB +pinctrl set 26 op dl # drive PCB NRST LOW -> reset stm32 +pinctrl set 26 op dh # turn stm32 back ON + source .venv/bin/activate python3 _device_main.py