logic-analyzer
logic-analyzer copied to clipboard
Arduino MEGA 2560 not working
I'm trying to get it working but PulseView is not detecting the device. I tried to change the start ping and count to 22 and 8 to use digital pins from 22 to 30 but it is still not detected.
I'm using the simple example:
#include "Arduino.h"
#include "logic_analyzer.h"
using namespace logic_analyzer;
int pinStart=START_PIN;
int numberOfPins=PIN_COUNT;
LogicAnalyzer logicAnalyzer;
Capture capture(MAX_FREQ, MAX_FREQ_THRESHOLD);
void setup() {
Serial.begin(SERIAL_SPEED);
Serial.setTimeout(SERIAL_TIMEOUT);
logicAnalyzer.begin(Serial, &capture, MAX_CAPTURE_SIZE, pinStart, numberOfPins);
}
void loop() {
if (Serial) logicAnalyzer.processCommand();
}
Do you have any clue?
Difficult to say. Did you select the correct Serial Port in Pulseview with 9600 Baud ?