Added PiXtend 2S support

This commit is contained in:
Thiago Alves 2018-02-07 11:38:40 -06:00 committed by GitHub
parent 8062559100
commit 5402d26727
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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