Strict Standards: Static function Automattic\Jetpack\My_Jetpack\Product::get_name() should not be abstract in /home/kodlabaf/public_html/wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-product.php on line 141

Strict Standards: Static function Automattic\Jetpack\My_Jetpack\Product::get_title() should not be abstract in /home/kodlabaf/public_html/wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-product.php on line 148

Strict Standards: Static function Automattic\Jetpack\My_Jetpack\Product::get_description() should not be abstract in /home/kodlabaf/public_html/wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-product.php on line 155

Strict Standards: Static function Automattic\Jetpack\My_Jetpack\Product::get_long_description() should not be abstract in /home/kodlabaf/public_html/wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-product.php on line 162

Strict Standards: Static function Automattic\Jetpack\My_Jetpack\Product::get_features() should not be abstract in /home/kodlabaf/public_html/wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-product.php on line 169

Strict Standards: Static function Automattic\Jetpack\My_Jetpack\Product::get_pricing_for_ui() should not be abstract in /home/kodlabaf/public_html/wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-product.php on line 176

Strict Standards: Static function Automattic\Jetpack\My_Jetpack\Product::get_manage_url() should not be abstract in /home/kodlabaf/public_html/wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-product.php on line 183

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/kodlabaf/public_html/wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-product.php:141) in /home/kodlabaf/public_html/wp-content/plugins/pe-recent-posts/pe-recent-posts.php on line 21

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/kodlabaf/public_html/wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-product.php:141) in /home/kodlabaf/public_html/wp-content/plugins/pe-recent-posts/pe-recent-posts.php on line 21

Warning: Cannot modify header information - headers already sent by (output started at /home/kodlabaf/public_html/wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-product.php:141) in /home/kodlabaf/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1723

Warning: Cannot modify header information - headers already sent by (output started at /home/kodlabaf/public_html/wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-product.php:141) in /home/kodlabaf/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1723

Warning: Cannot modify header information - headers already sent by (output started at /home/kodlabaf/public_html/wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-product.php:141) in /home/kodlabaf/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1723

Warning: Cannot modify header information - headers already sent by (output started at /home/kodlabaf/public_html/wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-product.php:141) in /home/kodlabaf/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1723

Warning: Cannot modify header information - headers already sent by (output started at /home/kodlabaf/public_html/wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-product.php:141) in /home/kodlabaf/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1723

Warning: Cannot modify header information - headers already sent by (output started at /home/kodlabaf/public_html/wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-product.php:141) in /home/kodlabaf/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1723

Warning: Cannot modify header information - headers already sent by (output started at /home/kodlabaf/public_html/wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-product.php:141) in /home/kodlabaf/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1723

Warning: Cannot modify header information - headers already sent by (output started at /home/kodlabaf/public_html/wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-product.php:141) in /home/kodlabaf/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1723
{"id":2554,"date":"2021-11-23T12:02:17","date_gmt":"2021-11-23T09:02:17","guid":{"rendered":"https:\/\/kodlabafra.org\/?p=2554"},"modified":"2021-11-23T12:33:35","modified_gmt":"2021-11-23T09:33:35","slug":"adim-sayar","status":"publish","type":"post","link":"https:\/\/kodlabafra.org\/2021\/11\/23\/adim-sayar\/","title":{"rendered":"Ad\u0131m-Sayar"},"content":{"rendered":"\n

Bu programda kendi ad\u0131m sayar arac\u0131m\u0131z\u0131 yapaca\u011f\u0131z.  Burada ad\u0131mlar\u0131 saymak i\u00e7in Micro:bit\u2019in sallanmas\u0131 (OnShake<\/strong>) \u00f6zelli\u011fini kullanaca\u011f\u0131z. Kodlaman\u0131n sonucunda aya\u011f\u0131m\u0131z\u0131 kald\u0131r\u0131p yere koydu\u011fumuzda Micro:bit sallanacak ve ad\u0131m say\u0131s\u0131 bir artarak ayn\u0131 zamanda led ekranda g\u00f6r\u00fcnecek.<\/p>\n\n\n\n

Sim\u00fclasyona ula\u015fmak i\u00e7in t\u0131klay\u0131n\u0131z.<\/a><\/p>\n\n\n\n\n\n\n\n

\u0130lk olarak att\u0131\u011f\u0131m\u0131z ad\u0131m say\u0131lar\u0131n\u0131 tutmas\u0131 i\u00e7in “ad\u0131m<\/strong>” isminde bir de\u011fi\u015fken<\/strong> olu\u015fturuyoruz. Bu de\u011fi\u015fkeni program ba\u015flad\u0131\u011f\u0131nda s\u0131f\u0131ra e\u015fitliyoruz ki kar\u0131\u015f\u0131kl\u0131k olmas\u0131n , ad\u0131mlar\u0131 \u00fcst\u00fcne saymas\u0131n.<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

Bu a\u015famadan sonra Micro:bit her salland\u0131\u011f\u0131nda ad\u0131m say\u0131s\u0131n\u0131n bir artmas\u0131 i\u00e7in a\u015fa\u011f\u0131daki komutlar\u0131 yaz\u0131yoruz. Led ekranda artan say\u0131lar bir s\u00fcre sonra kayan yaz\u0131 \u015feklinde g\u00f6r\u00fcnece\u011fi i\u00e7in h\u0131zl\u0131 ad\u0131mlar\u0131 saymada problem \u00e7\u0131kabilir. Bunun \u00f6n\u00fcne ge\u00e7mek i\u00e7in ad\u0131m say\u0131s\u0131 artt\u0131\u011f\u0131nda ekrandaki “animasyonu durdur<\/strong> “komutunu kullanaca\u011f\u0131z. Bu komuta Led men\u00fcs\u00fcnden daha fazla diyerek ula\u015fabilirsiniz.<\/strong><\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

Program burada bitiyor ama bizler A ve B butonlar\u0131n\u0131da ba\u015ftan ba\u015flatma ve en son ad\u0131m say\u0131s\u0131n\u0131 ekranda g\u00f6rme ama\u00e7l\u0131 kodlad\u0131k. Kodlar\u0131n tamam\u0131 a\u015fa\u011f\u0131daki gibidir. Bu kodlar\u0131 yazd\u0131ktan sonra Micro:bit’i \u00f6\u011frencilerinizin aya\u011f\u0131na veya bile\u011fine bantla yap\u0131\u015ft\u0131rarak e\u011flenceli bir uygulamaya d\u00f6n\u00fc\u015ft\u00fcrebilirsiniz. Veya Micro:bit’in ivme<\/strong> \u00f6zelli\u011fini kullanarak x,y ve z d\u00fczleminde de hareket etmesini kullanarak ad\u0131m sayar\u0131 daha hassas hale getirebilirsiniz.<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n