mirror of
https://github.com/thiagoralves/OpenPLC_v2.git
synced 2025-05-09 00:21:11 +08:00
Added PiXtend 2S support
This commit is contained in:
parent
8062559100
commit
5402d26727
@ -33,7 +33,7 @@ rm -f ../build_core.sh
|
||||
|
||||
echo The OpenPLC needs a driver to be able to control physical or virtual hardware.
|
||||
echo Please select the driver you would like to use:
|
||||
OPTIONS="Blank Modbus Fischertechnik RaspberryPi UniPi PiXtend Arduino ESP8266 Arduino+RaspberryPi Simulink "
|
||||
OPTIONS="Blank Modbus Fischertechnik RaspberryPi UniPi PiXtend PiXtend_2S Arduino ESP8266 Arduino+RaspberryPi Simulink "
|
||||
select opt in $OPTIONS; do
|
||||
if [ "$opt" = "Blank" ]; then
|
||||
cp ./hardware_layers/blank.cpp ./hardware_layer.cpp
|
||||
@ -89,6 +89,13 @@ select opt in $OPTIONS; do
|
||||
./build_core.sh
|
||||
echo 'export PATH=$PATH:"/cygdrive/c/Program Files/nodejs/"' >> ~/.bashrc
|
||||
exit
|
||||
elif [ "$opt" = "PiXtend_2S" ]; then
|
||||
cp ./hardware_layers/pixtend2s.cpp ./hardware_layer.cpp
|
||||
cp ./core_builders/build_rpi.sh ../build_core.sh
|
||||
echo [OPENPLC]
|
||||
cd ..
|
||||
./build_core.sh
|
||||
exit
|
||||
elif [ "$opt" = "Arduino" ]; then
|
||||
cp ./hardware_layers/arduino.cpp ./hardware_layer.cpp
|
||||
cp ./core_builders/build_normal.sh ../build_core.sh
|
||||
|
Loading…
x
Reference in New Issue
Block a user