Coder Social home page Coder Social logo

Comments (5)

noah1510 avatar noah1510 commented on July 18, 2024

Some more information is needed.
What have you tried? What environment are you using to compile the code (Arduino IDE or PIO)? Do the examples work? If yes, do you mind posting a snippet of your code?

from ledcontroller.

CodyMoltar avatar CodyMoltar commented on July 18, 2024

Hi! Instead of opening a new issue I thought I can continue here.

I'm trying to get your 7-Segment-counting.ino to work with an Arduino Mega. But to no avail.

As I understand it, the code defines the CS pin as 22, I connect the CS port of the display to pin 22 on the Mega.
Then I read in your documentation that the MOSI pin on a Mega is 51 and the CK is 52.

I think I'm missing something obvious here, since I'm not getting it to work.

Any help will be greatly appreciated!

from ledcontroller.

CodyMoltar avatar CodyMoltar commented on July 18, 2024

A small update, when using the example code (7-segment-counting.ino) as before, but now connected to an Arduino UNO I do get some results.

I've connected the MOSI to 11 and the clock to 13 and connected the CS to pin 4 (and updated #define CS 22 to #define CS 4).

It starts counting normally, but I do get some odd glitches and weird characters showing. I recorded it and uploaded the video here: https://photos.app.goo.gl/yTX1fPBWzv6yTEYA6

from ledcontroller.

noah1510 avatar noah1510 commented on July 18, 2024

I personally only own an ESP32 so I can't test other hardware at home. Because of this I have never looked into the pin configuration for a lot of board (including the mega). Have you checked if port 22 can even output digital signals? If the hardware SPI does not work try specifying other pins that have a digital output as MOSI and CK pins (check this example on how to do that).

from ledcontroller.

noah1510 avatar noah1510 commented on July 18, 2024

This might be a problem in the example or the library. All the examples need to be rewritten when I have some time for that. What version of the arduino IDE do you use? This could also be a problem caused by some constants being defined differently on your platform.

from ledcontroller.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.