LynxIsInvicible

joined 3 months ago
[–] LynxIsInvicible@lemmy.world 1 points 1 week ago* (last edited 1 week ago)

I' pretty sure I can get this to work like this(using RTOS) thanks

[–] LynxIsInvicible@lemmy.world 1 points 1 week ago

Thanks, I'll look into FreeRTOS next.

[–] LynxIsInvicible@lemmy.world 2 points 1 week ago (2 children)

Ok, Then I'll first complete my work like I was thinking about it before the current one(First fill all the columns and then do a simple animation which know how to do as it's linear typa thing), then I can look into improving the animation. I just saw on the internet that you have something called a "scheduler" which I've never heard specially in the Arduino side. I'll need to look into it too. Thanks for the reply! ☺️

 

The title doesn't help explain my problem so I'll explain and give my code here.(This is my first project that I'm doing on my own)

I made a clock + Session timer by using an RTC module (DS3231) and I've done the basic time and session programs(and they work fine). Then I wanted to make it more "lively" by adding some simple animations. What I wanted was to put a little animation between time change ( Basically I just add two time modes where in one there's seconds and without seconds (sometimes seeing seconds feel like a stress so ye)), and this animation runs across the whole screen whether the session is running or not(I'm not having any worries abt the way it's going)

void animation() {
  if (doAnimation == true) {
    switch (Animation) {
      case Animation::Start:
        lcdClearAnimation();
        if (currentMillis - animationStartMillis >= animationState[0]) {
          Animation = Mid1;
        }
        break;
      case Animation::Mid1:
        lcd.setCursor(0, 1);
        lcd.print("Mid1 Doing");
        if (currentMillis - animationStartMillis >= animationState[1]) {
          Animation = Mid2;
        }
        break;
      case Animation::Mid2:
        lcd.setCursor(0, 1);
        lcd.print("Mid2 Doing");
        if (currentMillis - animationStartMillis >= animationState[2]) {
          Animation = End;
        }
        break;
      case Animation::End:
        lcd.setCursor(0, 1);
        lcd.print("END. Doing");
        if (currentMillis - animationStartMillis >= animationState[3]) {
          doAnimation = false;
        }
        break;
    }
  }
}

So this is the one that handles the animation. This runs when I change the toggle switch. I've already done the "lcdAnimationClear();" one. Now I'll explain what animation I want. What I have in mind is this,

In the "Mid1" part(I'll probs remove Mid2 but let's keep it here for now), The program picks an order from 1-16(I have a 16x2 lcd) and let's say it picks the number each 50ms (For every time the animation runs the number order should be different), and when the first number is taken, it will go on a sequence of changing symbols on that picked column (kind of like a weird glitch and symbol changing transition but this continues until the time I want it to stop) and while that column is going through the different symbols, the program picks the next column and again puts that column in the symbol changing loop thing. Like this the program will pick all columns in both rows and filling (or doing the animation) .

@@ Then I want to end the columns that stays clear in the LCD in a blank(I think I'll be able to manage this by getting which states I'm in(switch modes and session running or not)), and the columns that have displaying time and session(if on) will just go to that.

For now I want to ignore the part after "@@" bc I'm still stuck on the main animation thing (Mid1 part). I don't want any code but I do need some suggestions on how to do this and or I can even get to this type of animation from arduino. I'm thinking like this bc I've always saw arduino as a way to tell something to do something like this and stop (not like -> start this, keep doing that and also start this after a few milliseconds, and keep doing all of that until the last part is done)

I also have a few things I've been avoiding. I'm not using blocking code in this program, I never used delay on this program(it's kind of like a learning challenge) I saw from an AI about fisher yates algorithm which need a "for loop" (it kinda goes against my challenge so I'm thinking about looking into some libraries or something that somehow get my randomize problem(I saw on google(AI again) that there is some libraries there))

Thank you for reading all of this and hope someone can give me an idea

[–] LynxIsInvicible@lemmy.world 0 points 2 months ago

I do like pacific drive but can't play on my potato

[–] LynxIsInvicible@lemmy.world 2 points 2 months ago (1 children)

Sorry for the misunderstanding. I thought you meant you had an older GPU like mine(GTX1050).

[–] LynxIsInvicible@lemmy.world 1 points 2 months ago

I saw the windows update thing damaging the booting process of linux on a YT video. If I run on windows it's 100% windows 10. So I might be able to get away with updates and stuff(I think)

[–] LynxIsInvicible@lemmy.world 1 points 2 months ago (3 children)

I think one of the main reason you have some issues is because the hardware is pretty old. So the gaming based OSs might be good for running on newer hardware and ofc their performance is good which just decrease the overall impact on them compared to older hardware. I'll look into Cachy OS, Thanks

[–] LynxIsInvicible@lemmy.world 1 points 2 months ago (1 children)

I heard that AMD are good with working on linux and that Nvidia is pretty bad with drivers and compatibility. That's why I mentioned the Nvidia gpu. I'll try to find more details on the driver supports and others. Other than that, I've never actually seen anyone saying this or that bad for fedora. Since I do have a weak gpu which is also old, I think it's better to find something that has more supports for things I do like gaming and video editing

[–] LynxIsInvicible@lemmy.world 1 points 2 months ago

From all the suggestions, Pop OS and Bazzite seems to be the better one to go with(I also saw about Cachy OS). So I'll go with either one I find more easy to start with. As for CAD and some other things that are "only good" on windows, I'm thinking about maybe partitioning with small amount of storage for windows and higher amount of storage for linux since it's something I'm trying to get into .

[–] LynxIsInvicible@lemmy.world 2 points 2 months ago (1 children)

I might keep my windows just for CAD and other things for a while. Other than that I think I will probably go with Pop OS. I don't know much but from what I've seen, bazzite is an "immutable" OS. It's a "read only OS". I'm guessing you can't modify much stuff as others.
SO about Pop OS, I won't be installing in the next few days and will be looking to pick one and install mostly by the end of this month. How do I keep in touch with the updates of it to know whether the bugs and stuff are fixed and stable.

[–] LynxIsInvicible@lemmy.world 1 points 2 months ago* (last edited 2 months ago)

I also saw more posts on CAD software which says they are not a good with linux base. I might use browser solutions as you have said or keep a bit of hard drive space(or buy an m.2 so I can run two OS (not sure bc i'm pretty broke rn))

[–] LynxIsInvicible@lemmy.world 3 points 2 months ago (1 children)

Thank you, I'll look into it

72
submitted 2 months ago* (last edited 2 months ago) by LynxIsInvicible@lemmy.world to c/linux@lemmy.ml
 

Hello,
Basically I want to pick a distro and like most beginners I'm coming from windows. I don't want to go on a full learning process from the start but I can probably handle some level of terminal usage. I, like most people play games(or thinking about playing games and it's one of main things I'm looking into but because this isn't the only thing I'm thinking of doing and do)

So here's what I'm looking for to give a good idea,

-Can play steam games(since steam is compatible, this is mostly always checked(I think))
-Can play other games outside steam(like from GOG where you download the setup. Heard about apps like "bottles" but idk how good it will be)
-Video editing softwares (Resolve works but I might want to use another)
-Can run a CAD software(I do like designing and stuff so I do look forward for this(I have used some on windows and don't know how its will be in linux. I know blender works but it's more of a modeling than CAD))
-Programming(I don't think this will be a problem)
-Microsoft like apps(Spreadsheet and stuff, Just need to be able to do work)
-Not sure if this is needed but I do sail the seven seas sometimes

My laptop has these if details are needed for compatibility
-GTX 1050(dedicated)
-intel i7 8th gen
-Intel UHD 630(integrated)

I heard a distro called "Pop! OS" which supports Nvidia GPUs but I also wanna know how intel stuff works too(cpu and Igraphics) It will be helpful if I can get details on how much change of performance I might have(increment or decrement as my pc is pretty weak) I just need your recommended OS and a brief explanation on what to look for in the OS and what to expect on the stuff I looked into (I'll try doing my research according to your recommendations)\

Apologies if this is another "recommend me an OS" post, I do see all gaming related stuff but just doesn't see much of the things that I look for

Thank you for reading!

view more: next ›