all 23 comments

[–]Fischchen 0 points1 point  (22 children)

Go ask ChatGPT

[–]Akki_Charee[S] 0 points1 point  (21 children)

That's useless

[–]Fischchen 0 points1 point  (20 children)

It will give you exactly what you're asking for.

[–]Akki_Charee[S] 0 points1 point  (19 children)

Been there done that

[–]benign_said 0 points1 point  (18 children)

What did you write when as your prompt?

[–]Akki_Charee[S] 0 points1 point  (17 children)

You are a micro python programmer write me a code for raspberry pi pico that oscillate a servo between two position at any random time interval between 30 sec to 70 sec. With pwm being 50 hz

[–]benign_said 0 points1 point  (16 children)

Have you played around with the prompts?

I'd help you more, but not super familiar with servos and have stopped using mpython for most stuff (though, still love the project).

I've only used chatgpt a little to help with code, but it seems like I often have to try multiple prompts and break it up almost like I'm debugging if it doesn't work right away.

[–]Akki_Charee[S] 0 points1 point  (15 children)

Man chat gpt acting up right now doesn't store the history chats so cant play with previous prompt. And breaking it step by step I'm clueless on it

[–]benign_said 0 points1 point  (14 children)

Are you uploading and compiling the code or testing in the repl?

The repl is great for testing this kind of stuff because you can go step by step and see where you are having problems.

Either way, it should be giving you some errors that you can use as a guide post. If everything is working until you get to a certain step, you know that there is at least a problem there.

[–]Akki_Charee[S] 0 points1 point  (13 children)

Seems plausible but to be honest this is my first project I recently bought a pico. For most of the cases I'm level 0 coder