mirror of
https://github.com/bdring/Grbl_Esp32.git
synced 2025-08-18 12:21:39 +02:00
Added additional filetypes to filter.
.TAP and .NGC are now valid
This commit is contained in:
36
.travis.yml
Normal file
36
.travis.yml
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
sudo: false
|
||||||
|
|
||||||
|
language: bash
|
||||||
|
|
||||||
|
os:
|
||||||
|
- linux
|
||||||
|
|
||||||
|
before_install:
|
||||||
|
- "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1280x1024x16"
|
||||||
|
|
||||||
|
before_script:
|
||||||
|
- "export DISPLAY=:99.0"
|
||||||
|
- sleep 3 # give xvfb some time to start
|
||||||
|
- wget http://downloads.arduino.cc/arduino-1.8.5-linux64.tar.xz
|
||||||
|
- tar xf arduino-1.8.5-linux64.tar.xz
|
||||||
|
- mv arduino-1.8.5 $HOME/arduino_ide
|
||||||
|
- cd $HOME/arduino_ide/hardware
|
||||||
|
- mkdir esp32
|
||||||
|
- cd esp32
|
||||||
|
- git clone https://github.com/espressif/arduino-esp32.git esp32
|
||||||
|
- cd esp32/tools
|
||||||
|
- python get.py
|
||||||
|
- cd ..
|
||||||
|
- echo 'build.flash_freq=40m' >> platform.txt
|
||||||
|
|
||||||
|
script:
|
||||||
|
- cd $TRAVIS_BUILD_DIR
|
||||||
|
- source command.sh
|
||||||
|
- export PATH="$HOME/arduino_ide:$PATH"
|
||||||
|
- arduino --board esp32:esp32:esp32 --save-prefs
|
||||||
|
- build_sketch $TRAVIS_BUILD_DIR/Grbl_Esp32/Grbl_Esp32.ino
|
||||||
|
|
||||||
|
notifications:
|
||||||
|
email:
|
||||||
|
on_success: change
|
||||||
|
on_failure: change
|
@@ -28,7 +28,7 @@
|
|||||||
|
|
||||||
|
|
||||||
File myFile;
|
File myFile;
|
||||||
char fileTypes[FILE_TYPE_COUNT][8] = {".NC", ".TXT", ".GCODE"}; // filter out files not of these types (s/b UPPERCASE)
|
char fileTypes[FILE_TYPE_COUNT][8] = {".NC", ".TXT", ".GCODE", ".TAP", ".NGC"}; // filter out files not of these types (s/b UPPERCASE)
|
||||||
bool SD_ready_next = false; // Grbl has processed a line and is waiting for another
|
bool SD_ready_next = false; // Grbl has processed a line and is waiting for another
|
||||||
|
|
||||||
|
|
||||||
|
@@ -22,7 +22,7 @@
|
|||||||
#include "SD.h"
|
#include "SD.h"
|
||||||
#include "SPI.h"
|
#include "SPI.h"
|
||||||
|
|
||||||
#define FILE_TYPE_COUNT 3 // number of acceptable gcode file types in array
|
#define FILE_TYPE_COUNT 5 // number of acceptable gcode file types in array
|
||||||
|
|
||||||
#define SDCARD_DET_PIN -1
|
#define SDCARD_DET_PIN -1
|
||||||
#define SDCARD_DET_VAL 0
|
#define SDCARD_DET_VAL 0
|
||||||
|
@@ -6,6 +6,8 @@
|
|||||||
|
|
||||||
### Project Overview
|
### Project Overview
|
||||||
|
|
||||||
|
[](https://travis-ci.org/bdring/Grbl_Esp32)
|
||||||
|
|
||||||
This is a port of [Grbl](https://github.com/gnea/grbl) for the ESP32. The ESP32 is potentially a great target for Grbl for the following reasons
|
This is a port of [Grbl](https://github.com/gnea/grbl) for the ESP32. The ESP32 is potentially a great target for Grbl for the following reasons
|
||||||
|
|
||||||
- **Faster** - Faster step rates and additional features could be added
|
- **Faster** - Faster step rates and additional features could be added
|
||||||
|
19
command.sh
Normal file
19
command.sh
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
function build_sketch()
|
||||||
|
{
|
||||||
|
local sketch=$1
|
||||||
|
|
||||||
|
# buld sketch with arudino ide
|
||||||
|
echo -e "\n Build $sketch \n"
|
||||||
|
arduino --verbose --verify $sketch
|
||||||
|
|
||||||
|
# get build result from arduino
|
||||||
|
local re=$?
|
||||||
|
|
||||||
|
# check result
|
||||||
|
if [ $re -ne 0 ]; then
|
||||||
|
echo "Failed to build $sketch"
|
||||||
|
return $re
|
||||||
|
fi
|
||||||
|
}
|
Reference in New Issue
Block a user