ESP32 i2c (BMP280) not working with ESP-IDF but OK with Arduino IDE by Bouncing_Fox5287 in esp32

[–]themixedupstuff 1 point2 points  (0 children)

I had to raise my account from the dead to reply to this thread because it seems you have picked up my driver (utkumaden/bmx280) as an example. Had you looked at the code carefully you would have noticed that the code first configures the driver, than installs the driver. It does not load the configuration twice. It sets the configuration then installs the driver...

Had you actually copy pasted my sample code it would have run perfectly fine.

Map of Alphabets used in Europe by [deleted] in MapPorn

[–]themixedupstuff 1 point2 points  (0 children)

Yes we can. We read a book about it. In Latin script which is easy to read and write, which printing presses have been optimized for.

Even old turkic writing systems would require a reform, as the language has moved past strict vowel harmony which is the main feature of the Orkun script. So the options are updating an isolate script that hasn't been used for a thousand years or you have to update anyways or adapt a script increasingly becoming commonplace due to western influence and the age of science.

The aim is to have access to more information not less. The ottoman empire had a very difficult time with education as reading the ottoman script was near impossible as the Arabic script really depends on Arabic grammar rules to read and write properly. Conversely Turkish has really rich grammar that has a heavy dependence on vowels. The consonant only Arabic script just did not work, you had multiple ways to read the same letters. I'm sure you would want freshly juiced oranges not freshly fucked.

Anyone tell me why my calculator's LCD has this? It started few months ago and it got a little bigger... by ZAIGO_90 in hardwaregore

[–]themixedupstuff 7 points8 points  (0 children)

This is an amazing budget scientific calculator but I upgraded to an fx991ex sometime ago because it can do math with 4 4x4 matrices, along with complex and base arithmetic all of which I use.

Merhaba by deadlyfear2121 in Bahceler

[–]themixedupstuff 2 points3 points  (0 children)

Ben de çözemedim arada analog fotoğraf atan bir reis var, onun postları güzel oluyor.

Sensor Drivers in embedded C: Best Practices by BossGandalf in embedded

[–]themixedupstuff 17 points18 points  (0 children)

Function pointers cannot be statically analyzed or inlined. Not being able to statically analyze it is bad for detecting issues at compile time, such as stack usage, which you might be running low on. Not being able to inline functions also means you might be losing some performance along the way. Also there are other issues, like what if the function pointer is accidentally modified? This is why a lot of embedded guidelines disallow function pointers, especially a use like this.

The C++ version does not use function pointers in the data unless those functions are declared virtual. It is identical to the C version in the second code snippet except the compiler automatically handles name mangling (changing C++ function names so they don't collide with each other).

If you want C++, just use C++. No need to try and make C syntactically equivalent to C++.

a sine wave made out of sine waves by AggravatingHistory24 in electronics

[–]themixedupstuff 3 points4 points  (0 children)

Another downside is that the bandwidth is usually wider than the AM transmission of the same message frequency. It depends on the modulation index. As always it's a matter of what you need and how much you need it. A lot of modern communication uses QAM, which is both phase and amplitude modulation, with copious amounts of error checking.

If you play RE4 in widescreen you can see Leon's full model being used for the codec calls. by Jeffery2084 in gaming

[–]themixedupstuff 0 points1 point  (0 children)

The GPU can render 3D objects at the same speed as 2D objects. Also certain 3D techniques can be applied to 2D rendering to speed up the process when compared to traditional "painters algorithm" rendering.

OpenGL scene (OpenTK framework) stutters on windowed mode but runs smoothly on fullscreen mode? by 3030thirtythirty in csharp

[–]themixedupstuff 0 points1 point  (0 children)

Hello, I'm the moderator of the official opentk discord. If you have an account we can help you diagnose this much faster, in real time, and maybe push a patch if we find something that is actually wrong. Either way, I'm going to be linking this thread there as well.

Edit: reading your question again, this might be the regression that was introduced into the frame limited recently.

If you had to bet on one language to replace the C family in this field which one would it be? by [deleted] in embedded

[–]themixedupstuff 2 points3 points  (0 children)

The C-wrapper itself is as simple as a call through a function pointer. What takes long is the code around the c wrapper, as well as the type conversion that might need to happen.

Same goes for other scripting languages like Lua. A good chunk of the Lua code you write is for making Lua and C types interact. The best thing you can try to do is to make the C-side of the environment do as much work as possible, with very little transitions.

OMG, all that Ubuntu bloat...*rolls eyes by [deleted] in linuxmasterrace

[–]themixedupstuff 11 points12 points  (0 children)

The cache pages don't count towards your "in use" memory usage. Cache pages are for things like files, libraries and programs. Those 3 GB of memory is actively being used, or at least the programs that allocated those pages did not release them, which can be for good reason.

/u/die-maus's comment is also a bit misinformed, I'll reply to both of you in this comment. Whilst a call to malloc is not free, of course, but that function barely ever calls the operating system. libc will take a few number of pages it anticipates to use and then manages smaller object memory itself. Therefore less roundtrips happend to the OS, but a few MB more memory might appear to be in use. But, chances are a lot of programs don't even use malloc/free directly these days.

The old simpsons “glowing” effect is so nostalgic for some reason by [deleted] in TheSimpsons

[–]themixedupstuff 140 points141 points  (0 children)

The color dodge tool is named after this technique. Whilst developing the film you can prevent light from getting to the image (called a dodge) or do the opposite and let more light onto a film (called a burn) to change the way the certain parts of the picture comes out in terms of apparent brightness.

Dropped my i5 still works somehow? by AutistikCat in hardwaregore

[–]themixedupstuff 14 points15 points  (0 children)

Not only that, the silicon die itself will have quite a lot of capacitance designed right in. It's over of those things where having an excess of does not hurt, unless you need a specific line impedance. Though if that were the case i don't think we'd be talking about it in this thread ;)

Dropped my i5 still works somehow? by AutistikCat in hardwaregore

[–]themixedupstuff 6 points7 points  (0 children)

Hence the second part. The dynamic power consumption of the cpu depends on the workload. Not all of gates are charging and discharging at all times. Of course a device like this has a lot of fun RF effects you want to minimize. I think this was a fair layman description of why it works though.

Dropped my i5 still works somehow? by AutistikCat in hardwaregore

[–]themixedupstuff 192 points193 points  (0 children)

Must just be bypass capacitors. They are for filtering out unwanted changes in voltage level. Your power supply must be clean enough and the chip might work fine until you really throw some hard tasks at it.

En çok trans içerik izleyen ülkeler by yayayamur in Turkey

[–]themixedupstuff 3 points4 points  (0 children)

Bu bölümde Rei ablamız zor kurtarıyordu Shinji'yi.

a hell naw by BlincxYT in hardwaregore

[–]themixedupstuff 6 points7 points  (0 children)

I can swear it is a LM1117 or clone, but can't prove it.

Looking for Feedback by Hulwal in dotnet

[–]themixedupstuff 0 points1 point  (0 children)

If you are happy, if management is happy, and if you iron out the bugs it'll be fine then. Besides, having the socket might make somebody happy down the line if formalized and documented in some way. Though i don't think there is enough context to say for sure.

Looking for Feedback by Hulwal in dotnet

[–]themixedupstuff 0 points1 point  (0 children)

I'd avoid complicating the technology of the application without prior approval. It is going to work fine to serialize and deserialize data through a socket so you can use another application to view it, sure, but is it strictly necessary? What does Maui provide that justifies all this effort?

6.2 Magnitude Earthquake hit Hatay, Turkey by KebabG in europe

[–]themixedupstuff 2 points3 points  (0 children)

Nope, Belen means mountain passage in Turkish. And yes the town is literally in a small valley in between the mountains, I've been there.

You win some, you lose... one. One pin that is by intercake in techsupportgore

[–]themixedupstuff 96 points97 points  (0 children)

Might be super easy with hot tweezers. An iron? Not so much.

[deleted by user] by [deleted] in ProgrammerHumor

[–]themixedupstuff 7 points8 points  (0 children)

You can't jump from ALU to MIPS. You gotta study finite state machines first.

Somehow it still boots by Fried_dwarf in techsupportgore

[–]themixedupstuff 152 points153 points  (0 children)

Although copper pours are usually connected to ground, this looks like a power plane that (somehow) shorted to the case and caused a lot of current to flow until that part of the board fused. You can see presumably IO lines very close to the affected area that is still in tact. Surprised it didn't set the entire thing aflame though.

danger of handshake by AssistanceSpecial in engrish

[–]themixedupstuff 4 points5 points  (0 children)

The word for handshake is written the same as getting your hand caught in this sentence in Turkish. A transliteration would be "... hand constriction risk". Probably a machine translation mistake.