Varable Blink pro

i have written an arduino program that will blink an LED from 0 about 1 second
i figured someone may like this so I will post the code

#include <math.h>
int fti=0;
float pot=0.0;

void setup() {
  
  pinMode(0, OUTPUT);
}

// the loop function runs over and over again forever
void loop() {
 pot=analogRead(A1);
 fti=round(pot);//fti will return an int from 1-5 the fti(float to int) varyable 
 digitalWrite(0, HIGH);   // turn the LED on (HIGH is the voltage level)
 delay(fti);              // wait for a second
 digitalWrite(0, LOW);    // turn the LED off by making the voltage LOW
 delay(fti);              // wait for a second
}

it is really a simple program but I think it might be useful to someone just starting to learn
it was made using an attiny85 but Im sure it be used on an UNO

bandmwhitt2013:
i figured someone may like this

Not me, sorry.

Understanding the language, error messages, etc.

Was there a question?

no question just posting some code I dont know where else to post it

bandmwhitt2013:
no question just posting some code I dont know where else to post it

"Exhibition/gallery" ?

 pot=analogRead(A1);

The analogRead() function returns an int. Why are you storing that in a float?

 fti=round(pot);//fti will return an int from 1-5 the fti(float to int) varyable

Rounding a float that was created from an int is pointless.

So is using delay(), when there are far better techniques.

I did not know that analogRead() returns an int see i learned something

Can I delete this topic now?

AWOL:
Can I delete this topic now?

Please.