Telegramy
Articles
About
« Rev
@programminginc
892
Fwd »
BinaryByter
Why would you minimize dynamic memory?
BinaryByter
EVERYTHING is in the RAM
BinaryByter
even your code
klimi
Why would you minimize dynamic memory?
because its taking too much
BinaryByter
Well try using bitfields to reduce the amount of bits used
klimi
Well try using bitfields to reduce the amount of bits used
I am using strings
klimi
And they are eaters of memory
BinaryByter
Not really
BinaryByter
I mean
BinaryByter
sure they are
BinaryByter
but if you need strings, theres no better way to encode them
klimi
Mhm
klimi
:(
klimi
It's kinda sad that I can have only 1 string
klimi
Well
klimi
Only 1 short
klimi
Well maybe medium
klimi
And 2 short
BinaryByter
give us context
klimi
Well I store rttl in string... I know not the best way to store notes
BinaryByter
rttl?
Anonymous
Hi everyone! I am new here and very excited !
klimi
rttl?
Ringtones tone language
klimi
Or something like that
BinaryByter
wut?
klimi
I am using that with deciding program to play song
BinaryByter
but why is memory a constraint here?
klimi
Because the song
klimi
Is stored in char array
BinaryByter
yes?
klimi
Yep
BinaryByter
you are on a phone
BinaryByter
likely
klimi
Yes
BinaryByter
phones have around 1.5 gigs of storage
klimi
phones have around 1.5 gigs of storage
I have 64
BinaryByter
rtti is prolly 1-7mb big
klimi
But why?
BinaryByter
I have 64
ram
klimi
rtti is prolly 1-7mb big
2kb
klimi
ram
3
BinaryByter
2kb
yes. so why is ram a problem?
klimi
But if I load bigger song
klimi
The ram needed exceeds 450 bytes
BinaryByter
so what?
klimi
So it crashes
BinaryByter
using more than 450 bytes crashes an app?
klimi
using more than 450 bytes crashes an app?
Crashes whole board
BinaryByter
dafaq
klimi
not crashes
klimi
But glitches
BinaryByter
you are probably messing something up
klimi
you are probably messing something up
Yes probably
klimi
I'm excited when new boards arrive ... They will have so much space
klimi
:333
BinaryByter
get yourself some chocolate, treat yourself to a pirated anime and fix your problem tomorrow with a fresh mind :D
klimi
I can't fix it
klimi
It's unfixable
klimi
I runned out of memory
BinaryByter
oh its an arduino?
klimi
oh its an arduino?
Well
klimi
It's based on attiny
BinaryByter
oh
klimi
Digispark
klimi
6k flash + 500bytes of ram
klimi
16.5mhz!!!!!
BinaryByter
:D
Luis José
get yourself some chocolate, treat yourself to a pirated anime and fix your problem tomorrow with a fresh mind :D
Exactly!
klimi
get yourself some chocolate, treat yourself to a pirated anime and fix your problem tomorrow with a fresh mind :D
Maxi
klimi
Stop spamming
Luis José
Stop spamming
RT
klimi
RT
?
Anonymous
Hello
klimi
Hello
Hi
Anonymous
hello guys :)
Anonymous
Hellooo
klimi
hello guys :)
Hi
Anonymous
How are you
Anonymous
Fine
Luis José
?
I meant ReTweet, was a bad joke
« Rev
@programminginc
892
Fwd »