Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Arduino MEGA 2560 not working #7

Open
joskfg opened this issue May 19, 2022 · 1 comment
Open

Arduino MEGA 2560 not working #7

joskfg opened this issue May 19, 2022 · 1 comment

Comments

@joskfg
Copy link

joskfg commented May 19, 2022

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?

@pschatzmann
Copy link
Owner

Difficult to say. Did you select the correct Serial Port in Pulseview with 9600 Baud ?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants