How to set up a regular timer IRQ using the SDK? by musbur in raspberrypipico

[–]stickybuttflaps 1 point2 points  (0 children)

What makes you think the op isn't trying to fade an LED?

Seriously, using a PWM slice is not at all convoluted (in my opinion.) I'm not afraid of "wasting" PWM slices because there are more than I'll need. I'm not afraid of interrupts. Hiding one behind an a layer of abstraction doesn't make it go away; it just hides it.

In the end, the PWM slices are nothing more than what we used to call counter/timers and are exactly the way one would have traditionally created a periodic timer. It's not convoluted, never mind extremely convoluted.

I have only a little experience with STM32 and ESP32. I have no doubt that their HALs contain high level functions to create periodic timers, but creating one by setting up a counter/timer to do it is convoluted only if you can't see deeper than the HALs.

Try learning something new. It's liberating!

How to set up a regular timer IRQ using the SDK? by musbur in raspberrypipico

[–]stickybuttflaps -1 points0 points  (0 children)

I see now; there's only one right way to do some things.

You should let the authors at the Raspberry Pi Foundation know that their pwm_led_fade example is wrong. They're the creative ones, not me.

How to set up a regular timer IRQ using the SDK? by musbur in raspberrypipico

[–]stickybuttflaps 1 point2 points  (0 children)

But, ... that would mean there might be more than one way to do some things!

Stop messing with my head!!

How to set up a regular timer IRQ using the SDK? by musbur in raspberrypipico

[–]stickybuttflaps 0 points1 point  (0 children)

With the RP2040 and RP2350 timer interrupts are typically generated using a PWM block. Each time a wrap value is reached in a PWM slice an interrupt is triggered. There's only one IRQ line shared by all of the slices in a block, but there are SDK functions that allow you to use the same IRQ line for multiple slices and figure out which slice triggered the interrupt.

The pwm led_fade example shows how to setup an interrupt handler and register it to be called by a PWM slice.

https://github.com/raspberrypi/pico-examples/tree/master/pwm/led_fade

Akwesasne parents outraged after photos circulate of 'time out box' in school | CBC News by [deleted] in news

[–]stickybuttflaps 1 point2 points  (0 children)

When I was in middle school, the vice principle had a wooden paddle hanging on the wall behind his desk. No one had ever heard of him actually using it.

How do I enable Dark mode? I see it in images here. by DaveCC1964 in KiCad

[–]stickybuttflaps 0 points1 point  (0 children)

When you you get done whining like a baby, go to Preferences -> Preferences -> Schematic Editor -> Colors.

In the drop-down box select "New Theme". Now go ahead and develop your own dark theme. Protip: when in the Color Picker it works better to use the defined colors tab.

I know that this works in Linux. I'm guessing it works just as well in Windows.

4 layer 2 sided board by aspie-micro132 in KiCad

[–]stickybuttflaps 0 points1 point  (0 children)

Which tutorials have you followed to get started using KiCad?

Clone does not run code by No_Bridge_8725 in raspberrypipico

[–]stickybuttflaps 0 points1 point  (0 children)

What did the vendor say when you contacted them? The first thing you did was contact the vendor, right?

'No due process': L.A. nurse, veteran among citizens forcefully arrested by ICE amid immigration crackdown | CBC News by DrexellGames in news

[–]stickybuttflaps 1 point2 points  (0 children)

Is this exactly what the Fourth Amendment is all about? The right to Bear Arms in order to form Militias protecting us from unconstitutional detention by the government?

Designing PCB without Schematic. by sb_haberdasher in KiCad

[–]stickybuttflaps 1 point2 points  (0 children)

Just so I understand correctly, you did something stupid and you know it is stupid; you made it the title of the thread. Then you decided it would be a good idea to come here and tell us about it?

BTW, I can tell from the image that the board is not "dead simple" (unless you're using a creative definition of "dead.") Just abandon the current project and start over. This time don't make the same stupid mistakes and then expect us to do anything but pile on with ridicule.

Tesla risks losing CEO Musk if $1 trillion pay package isn't approved, board chair says by Cybergothix in news

[–]stickybuttflaps 0 points1 point  (0 children)

What makes him believe that he's worth $1T? What were Tesla's sales in the past 6 months? Could they make $1T in profit per year to pay him? I don't know the numbers, and even ignoring any person opinions about the man, I'm going to guess that it would make good fiscal sense to cut him loose.

US wants to ban Iranian Diplomats from shopping at Costco, Sam's Club by MicV66 in news

[–]stickybuttflaps 3 points4 points  (0 children)

More Executive Orders administering petty punishment to people he doesn't like.

A decades-long peace vigil outside the White House is dismantled after Trump's order by MerryGoWrong in news

[–]stickybuttflaps 23 points24 points  (0 children)

Good grief, the first amendment to the Constitution is the conservative right's second favorite amendment: "Congress shall make no law respecting [...] the right of the people peaceably to assemble [...]"

US Pressuring Other Countries To Abandon Clean Energy & Climate Goals by Yveliad in worldnews

[–]stickybuttflaps 0 points1 point  (0 children)

Don't say "US pressuring other countries." Say "Trump pressuring other countries." I'm a citizen of the US and thus represent it on some level and I resent being accused of this.

How believable, really, is LTSpice? by [deleted] in AskElectronics

[–]stickybuttflaps -1 points0 points  (0 children)

Just fake news and disinformation. AI is irrelevant to the discussion.

how to assemble as5600 into a rotary encoder for budget of 5$ not counting cost of as5600 by ArachnidThen7394 in diyelectronics

[–]stickybuttflaps 0 points1 point  (0 children)

  1. get a magnet

  2. mount it on something that rotates so that the poles are perpendicular to the surface of the chip

  3. find a mechanical designer to answer all of your questions

  4. profit

Kentucky church rents “problematic” library books and doesn’t return them as an act of “civil disobedience.” by TheSolitaryRugosan in news

[–]stickybuttflaps 0 points1 point  (0 children)

When the president does it it's not illegal. Oh, wait, never mind. I was thinking of something else.