store data into RAM add LED flag