mirror of
https://github.com/aster94/logic-analyzer.git
synced 2026-05-03 17:08:52 +03:00
Merge pull request #18 from BackToy/master
fix processing SAVE default format
This commit is contained in:
@@ -299,7 +299,7 @@ void mouseClicked() {
|
|||||||
//save frame
|
//save frame
|
||||||
if (mouseY>buttonY && mouseY <buttonY+buttonH &&
|
if (mouseY>buttonY && mouseY <buttonY+buttonH &&
|
||||||
mouseX>button5X && mouseX <button5X+smallButtonW) {
|
mouseX>button5X && mouseX <button5X+smallButtonW) {
|
||||||
String a = "la_capture-"+immage; //+".jpg"; //if you prefer this format, default .tif
|
String a = "la_capture-"+immage+".jpg"; //if you prefer this format, default .jpg
|
||||||
save(a);
|
save(a);
|
||||||
immage++;
|
immage++;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,10 +13,10 @@ static const int N_SAMPLES = 300;
|
|||||||
|
|
||||||
|
|
||||||
// what pins to use, between 0 and 15
|
// what pins to use, between 0 and 15
|
||||||
static const int PIN0 = 4;
|
static const int PIN0 = 4; // D2
|
||||||
static const int PIN1 = 5;
|
static const int PIN1 = 5; // D1
|
||||||
static const int PIN2 = 12;
|
static const int PIN2 = 12; // D6
|
||||||
static const int PIN3 = 14;
|
static const int PIN3 = 14; // D5
|
||||||
// unused pins should be tied to the ground
|
// unused pins should be tied to the ground
|
||||||
|
|
||||||
static_assert(PIN0 >= 0 && PIN0 < 16, "");
|
static_assert(PIN0 >= 0 && PIN0 < 16, "");
|
||||||
|
|||||||
Reference in New Issue
Block a user