The Raspberry Pi Thread [3]


  1. Posts : 5,707
    insider build 10586.3 win10 pro 64
       #821

    ok,i got it running now ,thanks
    alphanumeric said:
    It just subtracts 3 from what the measured temp is. The displayed temp will be 3 degrees C lower than what the sensor measures. I compared what my caseless weather clock showed to what my portable showed. Then fudged it so they both showed the same. Not very technical but it works and its close enough. There is a line that says tc=(t-3) Change the 3 and you change the correction factor. The file with no "m" just shows t with no correction. I've seen some pretty wild formulas on the Pi forum that take into account the CPU temp etc. I'm not going to resort to that unless I have to. have plans to add a small 5v fan to my case and see if that fixes the heat buildup issue. I won't be able to order any more parts for a while though.
      My Computer


  2. Posts : 15,037
    Windows 10 IoT
    Thread Starter
       #822

    Push the joystick like it is a button and it will do a proper shut down like it does from the shut down menu. By default it runs at full brightness and with the colored text. Stick up down does the bright or dim. Stick left right toggles between colored text and all whit text. All white is nice if you have it out in bright light. I find the red and blue hard to see in bright light.
      My Computer


  3. Posts : 5,707
    insider build 10586.3 win10 pro 64
       #823

    time to get a cheaper hobby ,nuts what it cost for a few basic items ..





    5V 2.4A Switching Power Supply with 20AWG MicroUSB Cable PID: 1995
    $7.50
    2
    $15.00


    USB Charger Doctor - In-line Voltage and Current Meter PID: 1852
    $7.50
    1
    $7.50


    Ethernet Hub and USB Hub w/ Micro USB OTG Connector PID: 2992
    $14.95
    1
    $14.95


    Slim HDMI Cable - 450mm / 1.5 feet long PID: 2420
    $9.95
    2
    $19.90


    MicroUSB to 5.5/2.1mm DC Barrel Jack Adapter PID: 2789
    $1.95
    2
    $3.90


    SUBTOTAL
    $61.25

    USPS FIRST CLASS PACKAGE INTERNATIONAL
    $18.15

    TAX
    $0.00

    TOTAL
    $79.40----- that equals 110.90 Canadian




    -------------
      My Computer


  4. Posts : 15,037
    Windows 10 IoT
    Thread Starter
       #824

    I hear ya. I've spent way more on Pi stuff than I ever did on PC stuff. Exchange rate isn't helping either.
      My Computer


  5. Posts : 5,707
    insider build 10586.3 win10 pro 64
       #825

    yup, except for a few things ,computers came with everything you need to use it ,day one ,and I use mine until it was ,way,outdated
    alphanumeric said:
    I hear ya. I've spent way more on Pi stuff than I ever did on PC stuff. Exchange rate isn't helping either.
      My Computer


  6. Posts : 5,286
    Win 10 Pro x64
       #826

    caperjack said:

    Slim HDMI Cable - 450mm / 1.5 feet long PID: 2420
    $9.95





    -------------
    There are 3' slim HDMIs at Dollarama. ($2 or $3 each.)
      My Computer


  7. Posts : 5,707
    insider build 10586.3 win10 pro 64
       #827

    none at our store, last time I looked anyway
    badrobot said:
    There are 3' slim HDMIs at Dollarama. ($2 or $3 each.)
      My Computer


  8. Posts : 5,286
    Win 10 Pro x64
       #828

    caperjack said:
    none at our store, last time I looked anyway
    I was at one location close to home the other day browsing around with my toddler. I was thinking of getting one if I have use for it. Now I know where to go when I need one. :)
      My Computer


  9. Posts : 5,707
    insider build 10586.3 win10 pro 64
       #829

    I just checked dollar store in town, none.i will check the one in the City tomorrow ..I had one but it broke at the end where I had a quick bend, I had to have in it to fit the case ,, i like them because they take up less space .
    dollar store had 3 ft. but not small wire
    badrobot said:
    I was at one location close to home the other day browsing around with my toddler. I was thinking of getting one if I have use for it. Now I know where to go when I need one. :)
      My Computer


  10. Posts : 15,037
    Windows 10 IoT
    Thread Starter
       #830

    Tried this code today.
    Code:
    def switchpress(channel):  
        global buttonStatus
        start_time = time.time()
    
        while GPIO.input(channel) == 0: # Wait for the button up
            pass
    
        buttonTime = time.time() - start_time    # How long was the button down?
    
        if buttonTime >= 2:
            global x
            x = 0
            
    GPIO.add_event_detect(20, GPIO.FALLING, callback = switchpress, bouncetime = 2000) 
    It does shutdown if I hold the button down for 2 seconds or longer and no error messages when I run my file from idle. And no uncommanded shutdown when plugging in my power supply. Will have to see how it holds up when running and I take it in the car as the final test. I was having an issue where electrical interference was being detected as a button press and my Pi was doing the shutdown as if I had commanded it to do so. This should ignore any false triggers, hopefully anyway. The problematic button is wired up to a GPIO pin.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 10:48.
Find Us




Windows 10 Forums