Git Product home page Git Product logo

Comments (6)

SuhaylZhao avatar SuhaylZhao commented on July 24, 2024

Hi,

We can't know your specific question. Can you send a screenshot of your question to our emailbox([email protected])?

Thanks.

from freenove_ultimate_starter_kit_for_raspberry_pi.

gmbrill avatar gmbrill commented on July 24, 2024

Late here but I moved the 3.3v wire to ground and then i could run the python code

from freenove_ultimate_starter_kit_for_raspberry_pi.

FuelBuster avatar FuelBuster commented on July 24, 2024

Thanks gmbrill I was scratching my head on this one. seems to be an error in the code for .C maybe Python as well. Your ground switch does make it work in Python but not C.
I get the following error in C when setting it up. I am a Noob.
pi@raspberrypi:~/FreenoveKit/Code/C_Code/03.1.1_LightWater $ gcc LightWater.c -o LightWater-lwiringPi
/tmp/ccQB3kyn.o: In function led_on': LightWater.c:(.text+0x18): undefined reference to digitalWrite'
/tmp/ccQB3kyn.o: In function led_off': LightWater.c:(.text+0x40): undefined reference to digitalWrite'
/tmp/ccQB3kyn.o: In function main': LightWater.c:(.text+0x64): undefined reference to wiringPiSetup'
LightWater.c:(.text+0xa4): undefined reference to pinMode' LightWater.c:(.text+0xe4): undefined reference to delay'
LightWater.c:(.text+0x138): undefined reference to `delay'
collect2: error: ld returned 1 exit status

from freenove_ultimate_starter_kit_for_raspberry_pi.

SuhaylZhao avatar SuhaylZhao commented on July 24, 2024

Hi,

  1. Have you installed the wiringPi library?
  2. Your compilation command is missing a space between "LightWater" and "-lwiringPi". It should be like this: gcc LightWater.c -o LightWater -lwiringPi

Thanks.

from freenove_ultimate_starter_kit_for_raspberry_pi.

FuelBuster avatar FuelBuster commented on July 24, 2024

Thank you Suhay, it works now that I put the space between "LightWater" and "-lwiringPi". Freenove is so awesome! The projects are a great introduction to coding.

from freenove_ultimate_starter_kit_for_raspberry_pi.

FuelBuster avatar FuelBuster commented on July 24, 2024

from freenove_ultimate_starter_kit_for_raspberry_pi.

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.