Code Monkey home page Code Monkey logo

easy_comms's Introduction

  • ๐Ÿ‘‹ Hi, Iโ€™m @kevinmcaleer
  • ๐Ÿ‘€ I design and build robots, make videos about them on YouTube, bring them to life with code and have a whole load of fun along the way
  • ๐ŸŒฑ Iโ€™m currently learning Python and MicroPython
  • ๐Ÿ’ž๏ธ Iโ€™m looking to collaborate on anything to do with Robotics, though my time and focus is limited (Hobby time)
  • ๐Ÿ“ซ How to reach me - via our Discord server, sign up here: https://www.kevsrobots.com/discord

easy_comms's People

Contributors

kevinmcaleer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

easy_comms's Issues

the code doesn't work for me

i flashed the picoA file in one rasberry pico and the picoB on the other one and in both picos i flashed the easy_comms file . I don't understand why it doesn't work , it is the same code. I also run one pico from one pc and the othr pico with another pc . or should i run it both picos in the same pc ?

  • The output of pico_comms_a :

       ahoy
    
       sending message: ahoy
    
  • the output of pico_comms_b :

      ahoy
    
      sending message: ahoy
      sending message: helloA,0
    

board

def read loops endless

It does it if you don't received anything, you should do this to fix it, I did it in my version.

def read(self)->str:
start_time = time_ns()
current_time = start_time
new_line = False
message = ""
while (not new_line) or (current_time <= (start_time + self.timeout)):
current_time = time_ns()
if (current_time > (start_time + self.timeout)):
new_line = True

        if (self.uart.any() > 0):
            message = message + self.uart.read().decode('utf-8')
            if '\n' in message:
                new_line = True
                message = message.strip('\n')
                # print(f'received message: {message}')
                return message
    else:
        return None

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.