Jump to content

gauvinic

Member
  • Posts

    135
  • Joined

  • Last visited

Reputation Activity

  1. Like
    gauvinic got a reaction from CvrPaddyCvr in Anybody code an with an arduino?   
    I'm not gonna give you any code verbatim, because that's pointless and you won't learn. What I will do is highlight things that you appear to not grasp and suggest how to actually go about it. If I sound rude at all, I apologize, that's not my intent. Now on to the problem.
     
    From the little Arduino work I've done (I mainly use Xylinx/ Quartus/ Keil/ CodeWarrior/ Atmel Studio), I know that an arduino "sketch" needs a minimum of two functions: a setup function and a loop function. It appears that you have declared the setup function, but it does nothing. Try fixing the scope operators, {}, so that what you want setup() to do is contained within it's scope.
     
    When you call pinMode(), since it is a function/ method call, you need to indicate the end of the call with a ;. You need to do this each time you call the function, or any other, for that matter.
     
    Readline does not exist, at least according to a quick google search. Try using something else. Also, you would use it as a function.
     
    while (number < 255({
      //if (money)<255// the computer will generate a random number
      Serial.println("guess the number")
      };
     
    ^Not at all sure what this is for. However, for while loops, try to follow this structure:
    while(condition)
    {
          // Do stuff
          myFunc();
    }
     
    This is also a correct use of a while loop, if you want to wait until some condition has been met. I've seen it used a few times in your code, and what I saw seemed fine.
    while(condition);
     
    I don't believe you are using digitalWrite() correctly. Check the input parameters online and try to match that. You may have to make multiple function calls instead of just one. You also have random () in the code. 
     
    Variable "guess" is used but never declared/ instantiated. Be consistent. I believe you meant to put "answer" here, but I could be wrong.
     
    The way your digitalWrite is written, it looks like you intend to blink the LEDs all at once. However, in order to blink the LEDs, you first have to turn them on (pins HIGH or LOW depends on your circuit), wait for some delay, then turn them off. So if you want them to blink in succession, you will have to write this for each LED seperately, instead of turning them all on, calling delay once, then turning them all of. 
  2. Like
    gauvinic reacted to Sharif in Steam* summer sale! wooohoooo   
    This is Hilarious!! 
  3. Like
    gauvinic reacted to Volbet in It's ok to smoke cigars only one night right?   
    Unless of course the OP means off-brand herbal jazz cigars. 
    He could probably have smoked 6 of those in one evening, but he would probably still be seeing sounds and hearing colours. 
  4. Like
    gauvinic reacted to Kyuubixchidori in why is it "acceptable" for men to be topless, but not women?   
    Have you seen some women? Thank god for clothing
    Op just wants to see tatas
  5. Like
    gauvinic reacted to ZetZet in why is it "acceptable" for men to be topless, but not women?   
    because you don't hide what doesn't dangle.
  6. Like
  7. Like
    gauvinic reacted to flibberdipper in Rich people who either don't know they're rich or deny it..   
    The fact that you're high and made a coherent paragraph at all is enough to impress me.
  8. Like
    gauvinic reacted to Notree in Radeon R9 Fury series doesn't have HDMI 2.0   
    Considering this thread was started by someone who I've seen bashing AMD and riding  the NVIDIA train. I really think he's grabbing at straws here :lol:
  9. Like
    gauvinic reacted to MalaCraft in [Spoilers] Fuck Game of Thrones   
    what the fuck is wrong with you?!
  10. Like
    gauvinic reacted to salecar3 in [Spoilers] Fuck Game of Thrones   
    lol no hate there at all
  11. Like
    gauvinic reacted to Nexxus in Official Windows 10-tan (Windows 10 Personification/Mascot) Revealed!   
    Ya all programs should come with a built in mascot.
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     

  12. Like
    gauvinic reacted to PhilBoisvert in Official Windows 10-tan (Windows 10 Personification/Mascot) Revealed!   
    They just went full Japan... Never go full Japan
  13. Like
    gauvinic reacted to Dw136 in Computer Engineers questions   
    I study at the University of Alberta going into 3rd year Electrical Engineering (Similar so far to CE minus a few courses) 
     
    Honestly the biggest hurdle in Uni I found was just getting through the stuff you don't really care about. If your university is like mine you'll have to take a general year to qualify for a second year placement. You may be a brilliant programmer and know your circuits but the first year stuff is so broad it kills. The chem/physics are manageable (Basically first semester is repeat of HS, second semester is repeat of IB or AP). But the thing that kills most EE/CE guys is Statics and Dynamics (Think applied physics). These two courses are the killers of potential EE/CE kids, it's stuff that 90% of EE/CE kids will never take again but it's arguably the most difficult. <- If you're going to study anything before uni, check if you have to do these and get a general overview of them beforehand. 
     
    The biggest thing I can advise is to get a strong work ethic before you go to university. You have to develop a good ethic of going to class, keeping on top of your homework. If you're uni is like mine you'll have 5-6 classes a semester + 2-4 labs + lab reports + seminars + weekly homework (About 1 hour per subject if you're keeping up with material 3 hours per subject if you're behind) + bi-weekly assignments (about 5-8 hours to complete one). This is not to scare you but to let you understand that the easy days of HS are over, you have to work hard at this. Honestly, the equipment is secondary to anything else. Going in I didn't know how to program "Hello World" or solder a IC, but what I did have was a good work ethic and it served me better than any knowledge of a particular subject did. 
     
    Oh and this may seem harsh but learn to accept bad grades. Remember you're going into a school where the lowest grade is sometimes the highest in HS, everyone will, at one point, get hammered by an exam. (Imagine going from a 90% HS mark to a 65-75% Uni mark) You just got to get back up and knuckle down for the final. 
  14. Like
    gauvinic reacted to chaples55 in Comcast officially gives up on Time Warner Cable merger.   
    Source
     
     
    It's official, Comcast is giving up on the TWC merger. For now, at least. Comcast CEO Brian L. Roberts stated:
     
    Things were not looking good for Comcast due to all the opposition they faced so they decided to back out.
     
    As Marta Tellado, CEO of Consumer Reports said:
     
    This is great news and another great achievement in the battle for net neutrality. Our complaints have been heard!
  15. Like
    gauvinic reacted to Sky Daddy in Heaven Society - Week 39 Anime Poll   
    FMA:B > Trigun > FMA
  16. Like
    gauvinic reacted in 1995 Mustang Build Log   
    Banner By EpicGeekOnFire
     
     
    So, I have decided to do a build log many others have for there PCs but for my car! I plan to do a lot of modding, I will condense it to one area! It is a GT, but the previous owner took all forms of GT off the car, because and I quote "V6s look better". So It is my job to make this car even cooler than it is now!
     
    Car as Bought: 
     
    @terrytek @techswede @wolfgang @AlwaysFSX I thought you guys might enjoy this as you common the car thread!
  17. Like
    gauvinic reacted to kcchi in Anime reccomendations?   
    There are certainly a ton so I'll just name one : Durarara!! 
  18. Like
    gauvinic got a reaction from JoaoPRSousa in Car Enthusiast Club [Now Motorcycle friendly!] - First thread to 150k! ¯\_(ツ)_/¯   
    Looking to get this near the middle/ end of summer. '87 Camaro IROC-Z28
  19. Like
    gauvinic got a reaction from Fred Castellum in Heaven Society - Week 36 (Mushi-shi)   
    5 episodes in and I have to say, I really like it. Gives me something to do when I'm not doing homework or working (which is during normal waking hours for most people, including my friends). 
  20. Like
    gauvinic reacted to Jobbe03 in How do our personalities manifest in or influence our code?   
    I want some of what you're smoking
  21. Like
    gauvinic reacted to Ciccioo in [Problem Solving #6/7] Solving the N-Puzzle   
    oh, thanks! something i can actually understand!
  22. Like
    gauvinic got a reaction from wolfsinner in [Problem Solving #6/7] Solving the N-Puzzle   
    @fizzlesticks  @wolfsinner  Thanks. I figured it was that, but I've never seen this specific take on problems relating to permutations. I have researched A* before, because of Problem A (http://icpc.baylor.edu/download/worldfinals/problems/icpc2014.pdf). Haven't implemented it yet, but I did find that a heuristic based on Disjoint Pattern Databases can be significantly faster than the Manhattan Distance. Probably won't get to it any time soon, though, because I have to focus on my Digital System Design project (a singing Tesla Coil!!!). Hopefully will have some reasonable amount of time to spend on these next week, or maybe during the ACM meeting this week if its the same overly simple stuff again (we have alot of freshman).
  23. Like
    gauvinic got a reaction from Fred Castellum in What song are you listening to right now.   
    Pretty much because I went to a Porter Robinson concert last night, this is my favorite song on his new album, and I think it (mostly) goes very well with ZnT.
  24. Like
    gauvinic got a reaction from Damikiller37 in What song are you listening to right now.   
    Pretty much because I went to a Porter Robinson concert last night, this is my favorite song on his new album, and I think it (mostly) goes very well with ZnT.
  25. Like
    gauvinic reacted to Kevinkt in the war on drugs.   
    this is one hell of a hot deal
×