Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    Simple Windows installation

    Scheduled Pinned Locked Moved Discussion
    installation
    24 Posts 6 Posters 9.1k Views 7 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P Offline
      pmulvey @robert-hh
      last edited by

      @robert-hh

      # test
      import os
      
      import network
      import time
      from machine import UART
      uart = UART(0, 115200)
      os.dupterm(uart)
      # setup as a station
      wlan = network.WLAN(mode=network.WLAN.STA)
      
      wlan.connect(ssid="SKYFXXXX", auth=(network.WLAN.WPA2, "XXXXXXXX"))
      
      while not wlan.isconnected():
      
          time.sleep_ms(50)
      wlan.ifconfig(config=("192.168.0.29", "255.255.255.0", "192.168.0.1",  "192.168.0.1"))
      
      print ("Booted in STA mode")```
      1 Reply Last reply Reply Quote 0
      • P Offline
        pmulvey @robert-hh
        last edited by

        @robert-hh On a soft reboot (CTRL-D) boot.py seems to hang on this line:
        wlan = network.WLAN(mode=network.WLAN.STA) and I just get this response:
        PYB: soft reboot
        ÿ

        But on the reset it works fine. Can I run main.py from REPL without a soft reboot? I have to explain here that I am new to both micropython and sipy but have done loads with arduino.

        robert-hhR 1 Reply Last reply Reply Quote 0
        • robert-hhR Offline
          robert-hh @pmulvey
          last edited by

          @pmulvey I do not see a reason for the difference, but I execute the piece of code for setting up the network interface from main.py. Actually it is in a separate file, let's call it "setup_wifi.py", and I have a statement
          import setup_wifi
          in main.py. It is usual practice to make main.py simple and to put you application code into separate files, which are then imported in main.py, eventually enclosed in a try/except clause. That way the device comes up in a stable state, even if you code flags errors.

          1 Reply Last reply Reply Quote 0
          • J Offline
            jeffkdanies
            last edited by jeffkdanies

            Help me create a bootable USB, I want to install Windows 10 on my system. From where should I download the iso file.

            1 Reply Last reply Reply Quote 0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • 1
            • 2
            • 2 / 2
            • First post
              Last post

            Pycom on Twitter

            Pycom